changeset c6104c524b86 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=c6104c524b86
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 c08418f0aeec -r c6104c524b86 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
@@ -3199,8 +3199,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()
@@ -3318,9 +3326,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