changeset 7b9e2819ef9b in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=7b9e2819ef9b
description: remove buttons from infobar just before adding new instead of when 
hidding infobar

diffstat:

 src/chat_control.py |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r bd685a34e6c8 -r 7b9e2819ef9b src/chat_control.py
--- a/src/chat_control.py       Mon Oct 17 17:55:43 2011 +0200
+++ b/src/chat_control.py       Mon Oct 17 18:00:27 2011 +0200
@@ -3150,8 +3150,16 @@
             return
         markup, buttons, args, type_ = self.info_bar_queue[0]
         self.info_bar_label.set_markup(markup)
+
+        # Remove old buttons
+        area = self.info_bar.get_action_area()
+        for b in area.get_children():
+            area.remove(b)
+
+        # Add new buttons
         for button in buttons:
             self.info_bar.add_action_widget(button, 0)
+
         self.info_bar.set_message_type(type_)
         self.info_bar.set_no_show_all(False)
         self.info_bar.show_all()
@@ -3269,9 +3277,6 @@
                     self.info_bar_queue.remove(ib_msg)
                     if i == 0:
                         # We are removing the one currently displayed
-                        area = self.info_bar.get_action_area()
-                        for b in area.get_children():
-                            area.remove(b)
                         self.info_bar.hide()
                         # show next one?
                         gobject.idle_add(self._info_bar_show_message)
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to