changeset 9db6fcd83bdb in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=9db6fcd83bdb description: fix AcronymsExpanderPlugin
diffstat:
plugins/acronyms_expander/acronyms_expander.py | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r efc6c6430d09 -r 9db6fcd83bdb plugins/acronyms_expander/acronyms_expander.py --- a/plugins/acronyms_expander/acronyms_expander.py Tue Jan 01 14:10:01 2013 +0400 +++ b/plugins/acronyms_expander/acronyms_expander.py Tue Jan 01 14:26:25 2013 +0400 @@ -26,8 +26,8 @@
import sys
-import gtk -import gobject +from gi.repository import Gtk +from gi.repository import GObject
from plugins import GajimPlugin from plugins.helpers import log, log_calls @@ -66,7 +66,7 @@ #assert isinstance(tb,gtk.TextBuffer) ACRONYMS = self.config['ACRONYMS'] INVOKER = self.config['INVOKER'] - t = tb.get_text(tb.get_start_iter(), tb.get_end_iter()) + t = tb.get_text(tb.get_start_iter(), tb.get_end_iter(), True) #log.debug('%s %d'%(t, len(t))) if t and t[-1] == INVOKER: #log.debug('changing msg text') @@ -77,7 +77,7 @@ #log.debug('head: %s'%(head)) t = ''.join((base, sep, head, INVOKER)) #log.debug("setting text: '%s'"%(t)) - gobject.idle_add(tb.set_text, t) + GObject.idle_add(tb.set_text, t)
@log_calls('AcronymsExpanderPlugin') def connect_with_chat_control_base(self, chat_control):