Add compatibility for Gajim 1.1
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
[info]
|
||||
name: Server Status Icons
|
||||
short_name: server_status_icons
|
||||
version: 0.1.4
|
||||
version: 0.1.5
|
||||
description: Replace standard Gajim status icons with server
|
||||
specific for known XMPP server accounts (vk.com, ...)
|
||||
authors = Denis Fomin <fominde@gmail.com>
|
||||
Pavel Suslov
|
||||
homepage = http://trac-plugins.gajim.org/wiki/ServerStatusIconsPlugin
|
||||
min_gajim_version: 0.16.11
|
||||
min_gajim_version: 1.0.0
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
##
|
||||
import os
|
||||
|
||||
from gajim.plugins.gui import GajimPluginConfigDialog
|
||||
from gajim.plugins import GajimPlugin
|
||||
from gajim.plugins.helpers import log_calls
|
||||
from gajim import gtkgui_helpers
|
||||
@@ -10,6 +7,11 @@ from gajim.common import app
|
||||
from gajim.common import helpers
|
||||
from gajim.common import ged
|
||||
|
||||
# Since Gajim 1.1.0 _() has to be imported
|
||||
try:
|
||||
from gajim.common.i18n import _
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
class ServerStatusIconsPlugin(GajimPlugin):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user