Add compatibility for Gajim 1.1
This commit is contained in:
@@ -24,15 +24,20 @@ Message length notifier plugin.
|
||||
:license: GPL
|
||||
'''
|
||||
|
||||
import sys
|
||||
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
|
||||
from gajim.plugins import GajimPlugin
|
||||
from gajim.plugins.helpers import log, log_calls
|
||||
from gajim.plugins.helpers import log_calls
|
||||
from gajim.plugins.gui import GajimPluginConfigDialog
|
||||
|
||||
# Since Gajim 1.1.0 _() has to be imported
|
||||
try:
|
||||
from gajim.common.i18n import _
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
class LengthNotifierPlugin(GajimPlugin):
|
||||
|
||||
@log_calls('LengthNotifierPlugin')
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
[info]
|
||||
name: Message Length Notifier
|
||||
short_name: length_notifier
|
||||
version: 0.4
|
||||
version: 0.5
|
||||
description: Highlights message entry field in chat window when given length of message is exceeded.
|
||||
authors = Mateusz Biliński <mateusz@bilinski.it>
|
||||
homepage = http://trac-plugins.gajim.org/wiki/LengthNotifierPlugin
|
||||
min_gajim_version: 0.16.11
|
||||
min_gajim_version: 1.0.0
|
||||
|
||||
Reference in New Issue
Block a user