Add compatibility for Gajim 1.1
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from gi.repository import Pango
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
@@ -11,6 +9,12 @@ from gajim.plugins.gui import GajimPluginConfigDialog
|
||||
from gajim.dialogs import ChangeActivityDialog, ChangeMoodDialog
|
||||
from gajim import gtkgui_helpers
|
||||
|
||||
# Since Gajim 1.1.0 _() has to be imported
|
||||
try:
|
||||
from gajim.common.i18n import _
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
class RosterTweaksPlugin(GajimPlugin):
|
||||
def init(self):
|
||||
|
||||
Reference in New Issue
Block a user