Merge branch 'master' of dev.gajim.org:gajim/gajim
This commit is contained in:
commit
f15497b0c0
|
@ -29,9 +29,6 @@
|
|||
|
||||
import os
|
||||
import time
|
||||
import gi
|
||||
gi.require_version('GdkX11', '3.0')
|
||||
from gi.repository import GdkX11
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
from gi.repository import GdkPixbuf
|
||||
|
@ -58,7 +55,6 @@ from message_textview import MessageTextView
|
|||
from common.stanza_session import EncryptedStanzaSession, ArchivingStanzaSession
|
||||
from common.contacts import GC_Contact
|
||||
from common.logger import constants
|
||||
from common.pep import MOODS, ACTIVITIES
|
||||
from nbxmpp.protocol import NS_XHTML, NS_XHTML_IM, NS_FILE, NS_MUC
|
||||
from nbxmpp.protocol import NS_RECEIPTS, NS_ESESSION
|
||||
from nbxmpp.protocol import NS_JINGLE_RTP_AUDIO, NS_JINGLE_RTP_VIDEO
|
||||
|
|
|
@ -38,7 +38,7 @@ import logging
|
|||
log = logging.getLogger('gajim.c.caps_cache')
|
||||
|
||||
from nbxmpp import (NS_XHTML_IM, NS_RECEIPTS, NS_ESESSION, NS_CHATSTATES,
|
||||
NS_JINGLE_ICE_UDP, NS_JINGLE_RTP_AUDIO, NS_JINGLE_RTP_VIDEO, NS_CAPS,
|
||||
NS_JINGLE_ICE_UDP, NS_JINGLE_RTP_AUDIO, NS_JINGLE_RTP_VIDEO,
|
||||
NS_JINGLE_FILE_TRANSFER)
|
||||
# Features where we cannot safely assume that the other side supports them
|
||||
FEATURE_BLACKLIST = [NS_CHATSTATES, NS_XHTML_IM, NS_RECEIPTS, NS_ESESSION,
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
import os
|
||||
import shutil
|
||||
import sys
|
||||
import stat
|
||||
|
||||
from common import gajim
|
||||
from common import logger
|
||||
|
|
|
@ -32,9 +32,7 @@
|
|||
##
|
||||
|
||||
|
||||
import sys
|
||||
import re
|
||||
import copy
|
||||
from common import defs
|
||||
from gi.repository import GLib
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
||||
##
|
||||
|
||||
import os, sys
|
||||
import os
|
||||
|
||||
from common import gajim
|
||||
from common import exceptions
|
||||
|
|
|
@ -32,7 +32,6 @@ in turn based on the Fuzzy Clock Applet of Frerich Raabe (KDE).
|
|||
So most of the credit goes to this guys, thanks :-)
|
||||
"""
|
||||
|
||||
import time
|
||||
|
||||
class FuzzyClock:
|
||||
HOUR_NAMES = [ _('twelve'), _('one'), _('two'), _('three'), _('four'),
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
||||
##
|
||||
|
||||
import sys
|
||||
import os
|
||||
import logging
|
||||
import locale
|
||||
|
@ -201,10 +200,6 @@ try:
|
|||
from gi.repository import Farstream
|
||||
gi.require_version('Gst', '1.0')
|
||||
from gi.repository import Gst
|
||||
gi.require_version('GdkX11', '3.0')
|
||||
from gi.repository import GdkX11
|
||||
gi.require_version('GstVideo', '1.0')
|
||||
from gi.repository import GstVideo
|
||||
from gi.repository import GLib
|
||||
try:
|
||||
Gst.init(None)
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
|
||||
import sys
|
||||
import re
|
||||
import locale
|
||||
import os
|
||||
import subprocess
|
||||
import urllib
|
||||
|
|
|
@ -17,20 +17,13 @@
|
|||
Handles Jingle RTP sessions (XEP 0167)
|
||||
"""
|
||||
|
||||
from collections import deque
|
||||
|
||||
from gi.repository import GLib
|
||||
import socket
|
||||
|
||||
import nbxmpp
|
||||
from gi.repository import Farstream
|
||||
import gi
|
||||
from gi.repository import Farstream
|
||||
|
||||
gi.require_version('Gst', '1.0')
|
||||
from gi.repository import Gst
|
||||
gi.require_version('GdkX11', '3.0')
|
||||
from gi.repository import GdkX11
|
||||
gi.require_version('GstVideo', '1.0')
|
||||
from gi.repository import GstVideo
|
||||
from gi.repository import GLib
|
||||
|
||||
from common import gajim
|
||||
|
@ -40,6 +33,7 @@ from common.jingle_content import contents, JingleContent, JingleContentSetupExc
|
|||
from common.connection_handlers_events import InformationEvent
|
||||
from common.jingle_session import FailedApplication
|
||||
|
||||
from collections import deque
|
||||
|
||||
import logging
|
||||
log = logging.getLogger('gajim.c.jingle_rtp')
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
##
|
||||
|
||||
import logging
|
||||
from common import i18n
|
||||
|
||||
def parseLogLevel(arg):
|
||||
"""
|
||||
|
|
|
@ -16,10 +16,6 @@
|
|||
import gi
|
||||
gi.require_version('Gst', '1.0')
|
||||
from gi.repository import Gst
|
||||
gi.require_version('GdkX11', '3.0')
|
||||
from gi.repository import GdkX11
|
||||
gi.require_version('GstVideo', '1.0')
|
||||
from gi.repository import GstVideo
|
||||
|
||||
|
||||
class DeviceManager(object):
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
import locale
|
||||
import re
|
||||
from time import time
|
||||
from common import gajim
|
||||
|
|
|
@ -18,8 +18,6 @@
|
|||
##
|
||||
|
||||
import sys
|
||||
import os
|
||||
import re
|
||||
import logging
|
||||
import functools
|
||||
log = logging.getLogger('gajim.c.resolver')
|
||||
|
@ -30,8 +28,6 @@ if __name__ == '__main__':
|
|||
import common.configpaths
|
||||
common.configpaths.gajimpaths.init(None)
|
||||
|
||||
from common import helpers
|
||||
from nbxmpp.idlequeue import IdleCommand
|
||||
from gi.repository import Gio, GLib
|
||||
|
||||
|
||||
|
@ -132,7 +128,6 @@ class GioResolver(CommonResolver):
|
|||
|
||||
# below lines is on how to use API and assist in testing
|
||||
if __name__ == '__main__':
|
||||
from gi.repository import GLib
|
||||
from gi.repository import Gtk
|
||||
from nbxmpp import idlequeue
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
|
||||
from common import gajim
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
STATE_UNKNOWN = 'OS probably not supported'
|
||||
|
|
|
@ -36,7 +36,7 @@ from gi.repository import Gdk
|
|||
from gi.repository import Pango
|
||||
from gi.repository import GObject
|
||||
from gi.repository import GLib
|
||||
import os, sys
|
||||
import os
|
||||
import common.config
|
||||
import common.sleepy
|
||||
from common.i18n import Q_
|
||||
|
|
|
@ -39,7 +39,6 @@ import time
|
|||
import os
|
||||
import tooltips
|
||||
import dialogs
|
||||
import locale
|
||||
import queue
|
||||
import urllib
|
||||
|
||||
|
|
|
@ -42,7 +42,6 @@ import time
|
|||
import gtkgui_helpers
|
||||
import vcard
|
||||
import conversation_textview
|
||||
import message_control
|
||||
import dataforms_widget
|
||||
|
||||
from common import defs
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
# the functionality)
|
||||
# There are more methods, of course, but this is a basic set.
|
||||
|
||||
import os
|
||||
import types
|
||||
import weakref
|
||||
from gi.repository import GLib
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
##
|
||||
|
||||
import os
|
||||
import sys
|
||||
import gi
|
||||
from gi.repository import Gtk
|
||||
import gtkgui_helpers
|
||||
|
|
|
@ -36,13 +36,11 @@ from gi.repository import GLib
|
|||
from gi.repository import Pango
|
||||
import os
|
||||
import sys
|
||||
import importlib
|
||||
try:
|
||||
from PIL import Image
|
||||
except:
|
||||
pass
|
||||
from io import BytesIO
|
||||
import array
|
||||
|
||||
import logging
|
||||
log = logging.getLogger('gajim.gtkgui_helpers')
|
||||
|
|
|
@ -52,7 +52,6 @@ import signal
|
|||
import gi
|
||||
gi.require_version('Gtk', '3.0')
|
||||
from gi.repository import Gtk
|
||||
gi.require_version('GdkX11', '3.0')
|
||||
from gi.repository import Gdk
|
||||
from gi.repository import GLib
|
||||
import time
|
||||
|
|
|
@ -41,11 +41,11 @@ from gi.repository import Pango
|
|||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
from gi.repository import GdkPixbuf
|
||||
import xml.sax, xml.sax.handler
|
||||
import xml.sax
|
||||
import xml.sax.handler
|
||||
import re
|
||||
from io import StringIO
|
||||
import urllib
|
||||
import operator
|
||||
|
||||
if __name__ == '__main__':
|
||||
from common import i18n
|
||||
|
|
|
@ -24,12 +24,10 @@
|
|||
import gc
|
||||
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
from gi.repository import GObject
|
||||
from gi.repository import GLib
|
||||
from gi.repository import Pango
|
||||
|
||||
import gtkgui_helpers
|
||||
from common import gajim
|
||||
|
||||
class MessageTextView(Gtk.TextView):
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
||||
##
|
||||
|
||||
import sys
|
||||
from common import gajim
|
||||
|
||||
|
||||
|
|
|
@ -33,7 +33,6 @@ from dialogs import PopupNotificationWindow
|
|||
from gi.repository import GObject
|
||||
from gi.repository import GLib
|
||||
import gtkgui_helpers
|
||||
from gi.repository import Gtk
|
||||
|
||||
from common import gajim
|
||||
from common import helpers
|
||||
|
|
|
@ -74,7 +74,6 @@ if dbus_support.supported:
|
|||
import dbus
|
||||
|
||||
from nbxmpp.protocol import NS_FILE, NS_ROSTERX, NS_CONFERENCE
|
||||
from common.pep import MOODS, ACTIVITIES
|
||||
|
||||
#(icon, name, type, jid, account, editable, second pixbuf)
|
||||
(
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
||||
##
|
||||
|
||||
import sys
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
from gi.repository import GObject
|
||||
|
@ -33,7 +32,6 @@ import dialogs
|
|||
import config
|
||||
import tooltips
|
||||
import gtkgui_helpers
|
||||
import tooltips
|
||||
|
||||
from common import gajim
|
||||
from common import helpers
|
||||
|
|
|
@ -33,7 +33,6 @@ from gi.repository import Gdk
|
|||
from gi.repository import GLib
|
||||
import os
|
||||
import time
|
||||
import locale
|
||||
from datetime import datetime
|
||||
from datetime import timedelta
|
||||
|
||||
|
|
Loading…
Reference in New Issue