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

@@ -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

View File

@@ -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):