Skip to content
Snippets Groups Projects
Commit 3cf957db authored by Dicson's avatar Dicson
Browse files

fix AcronymsExpanderPlugin

parent 92b50a87
No related branches found
No related tags found
No related merge requests found
......@@ -26,8 +26,8 @@ Acronyms expander plugin.
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 @@ class AcronymsExpanderPlugin(GajimPlugin):
#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 @@ class AcronymsExpanderPlugin(GajimPlugin):
#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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment