Finish up chat notification, there are races but it seem
This commit is contained in:
+4
-4
@@ -271,10 +271,10 @@ class Chat(activity.Activity):
|
||||
self.activity_shutdown()
|
||||
|
||||
def activity_on_lost_focus(self):
|
||||
activity.Activity.activity_on_lost_focus()
|
||||
activity.Activity.activity_on_lost_focus(self)
|
||||
|
||||
def activity_on_got_focus(self):
|
||||
activity.Activity.activity_on_got_focus()
|
||||
activity.Activity.activity_on_got_focus(self)
|
||||
self.activity_set_has_changes(False)
|
||||
|
||||
def _message_inserted(self):
|
||||
@@ -292,8 +292,6 @@ class Chat(activity.Activity):
|
||||
aniter = buf.get_end_iter()
|
||||
buf.insert(aniter, nick + ": ")
|
||||
|
||||
self._message_inserted()
|
||||
|
||||
def _insert_rich_message(self, nick, msg):
|
||||
msg = Emoticons.get_instance().replace(msg)
|
||||
|
||||
@@ -325,6 +323,8 @@ class Chat(activity.Activity):
|
||||
aniter = buf.get_end_iter()
|
||||
buf.insert(aniter, "\n")
|
||||
|
||||
self._message_inserted()
|
||||
|
||||
def _get_first_richtext_chunk(self, msg):
|
||||
"""Scan the message for the first richtext-tagged chunk and return it."""
|
||||
rt_last = -1
|
||||
|
||||
Reference in New Issue
Block a user