Use absolute imports on all plugins
This is necessary because Gajim is with 0.16.11 a python package
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
[info]
|
||||
name: Wrong Layout
|
||||
short_name: Wrong Layout
|
||||
version: 0.1.3
|
||||
version: 0.1.4
|
||||
description: Press alt+r to convert chars typed in wrong layout Rus<>Eng
|
||||
authors: Denis Fomin <fominde@gmail.com>
|
||||
homepage: https://dev.gajim.org/gajim/gajim-plugins/wikis/WrongLayoutPlugin
|
||||
min_gajim_version: 0.16.10
|
||||
min_gajim_version: 0.16.11
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
from common import helpers
|
||||
from common import gajim
|
||||
from gajim.common import helpers
|
||||
from gajim.common import app
|
||||
|
||||
from plugins import GajimPlugin
|
||||
from plugins.helpers import log_calls
|
||||
from gajim.plugins import GajimPlugin
|
||||
from gajim.plugins.helpers import log_calls
|
||||
|
||||
|
||||
class WrongLayoutPlugin(GajimPlugin):
|
||||
@@ -118,7 +118,7 @@ class Base(object):
|
||||
else:
|
||||
start = message_buffer.get_start_iter()
|
||||
end = message_buffer.get_end_iter()
|
||||
stext = gajim.config.get('gc_refer_to_nick_char')
|
||||
stext = app.config.get('gc_refer_to_nick_char')
|
||||
res = start.forward_search(stext, Gtk.TextSearchFlags.TEXT_ONLY, None)
|
||||
if res:
|
||||
first, start = res
|
||||
|
||||
Reference in New Issue
Block a user