Add compatibility for Gajim 1.1
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
[info]
|
||||
name: Roster Tweaks
|
||||
short_name: roster_tweaks
|
||||
version: 1.0.0
|
||||
version: 1.0.1
|
||||
description: Allows user to tweak roster window appearance (eg. make it compact).
|
||||
Added ability to quickly change the status message to all connected accounts.
|
||||
authors = Denis Fomin <fominde@gmail.com>
|
||||
homepage = http://trac-plugins.gajim.org/wiki/RosterTweaksPlugin
|
||||
min_gajim_version: 0.16.11
|
||||
min_gajim_version: 1.0.0
|
||||
|
||||
@@ -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