changeset f6809e2f92d4 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=f6809e2f92d4
description: whiteboard plugin. small optimization
diffstat:
plugins/whiteboard/plugin.py | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (20 lines):
diff -r 1adff39a82b7 -r f6809e2f92d4 plugins/whiteboard/plugin.py
--- a/plugins/whiteboard/plugin.py Wed Nov 03 21:10:20 2010 +0300
+++ b/plugins/whiteboard/plugin.py Wed Nov 03 22:15:17 2010 +0300
@@ -341,12 +341,10 @@
if not self.whiteboard:
return
hbox = self.chat_control.xml.get_object('chat_control_hbox')
- for child in hbox.get_children():
- if child == self.whiteboard.hbox:
- self.button.set_active(False)
- hbox.remove(child)
- self.whiteboard = None
- break
+ if self.whiteboard.hbox in hbox.get_children():
+ self.button.set_active(False)
+ hbox.remove(self.whiteboard.hbox)
+ self.whiteboard = None
def disconnect_from_chat_control(self):
actions_hbox = self.chat_control.xml.get_object('actions_hbox')
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits