Add compatibility for Gajim 1.1

This commit is contained in:
Philipp Hörist
2018-10-06 20:14:38 +02:00
parent db2c71b6a1
commit 97c2bfbdd9
62 changed files with 275 additions and 115 deletions

View File

@@ -34,7 +34,6 @@ from gajim.plugins import GajimPlugin
from gajim.plugins.gajimplugin import GajimPluginException
from gajim.plugins.helpers import log_calls, log
from nbxmpp import Message
from gi.repository import Gtk
from gi.repository import Gio
from gi.repository import GLib
from gajim import chat_control
@@ -44,7 +43,12 @@ from gajim.common.jingle_content import JingleContent
from gajim.common.jingle_transport import JingleTransport, TransportType
from gajim import dialogs
from .whiteboard_widget import Whiteboard, HAS_GOOCANVAS
from gajim.common import caps_cache
# Since Gajim 1.1.0 _() has to be imported
try:
from gajim.common.i18n import _
except ImportError:
pass
NS_JINGLE_XHTML = 'urn:xmpp:tmp:jingle:apps:xhtml'
NS_JINGLE_SXE = 'urn:xmpp:tmp:jingle:transports:sxe'