Add compatibility for Gajim 1.1
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
[info]
|
||||
name: Set Location
|
||||
short_name: set_location
|
||||
version: 0.7.5
|
||||
version: 0.7.6
|
||||
description: Set information about your current geographical or physical location.
|
||||
To be able to set your location on the built-in map, you must install gir1.2-gtkchamplain
|
||||
authors: Denis Fomin <fominde@gmail.com>
|
||||
Daniel Brötzmann <wurstsalat@posteo.de>
|
||||
homepage: https://dev.gajim.org/gajim/gajim-plugins/wikis/SetLocationPlugin
|
||||
min_gajim_version: 0.16.11
|
||||
min_gajim_version: 1.0.0
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
##
|
||||
|
||||
from datetime import datetime
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import GdkPixbuf
|
||||
import gi
|
||||
import os
|
||||
import time
|
||||
import logging
|
||||
from datetime import datetime
|
||||
|
||||
import gi
|
||||
from gi.repository import Gtk
|
||||
|
||||
from gajim.plugins.gui import GajimPluginConfigDialog
|
||||
from gajim.plugins import GajimPlugin
|
||||
@@ -19,6 +16,12 @@ from gajim.common import configpaths
|
||||
from gajim import gtkgui_helpers
|
||||
from gajim.dialogs import InputDialog, WarningDialog
|
||||
|
||||
# Since Gajim 1.1.0 _() has to be imported
|
||||
try:
|
||||
from gajim.common.i18n import _
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
log = logging.getLogger('gajim.plugin_system.set_location')
|
||||
|
||||
CHAMPLAIN_AVAILABLE = True
|
||||
|
||||
Reference in New Issue
Block a user