changeset 33350e60b32f in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=33350e60b32f
description: banner_tweaks plugin.  prevent Tb in the gc if 'show_banner_image' 
is disabled

diffstat:

 plugins/banner_tweaks/plugin.py |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 7f5f1b47b261 -r 33350e60b32f plugins/banner_tweaks/plugin.py
--- a/plugins/banner_tweaks/plugin.py   Sat May 21 19:40:11 2011 +0200
+++ b/plugins/banner_tweaks/plugin.py   Sat May 21 23:17:17 2011 +0400
@@ -79,7 +79,12 @@
             chat_control.banner_status_label.set_markup(status_text)
 
         if not self.config['show_banner_image']:
-            banner_status_img = 
chat_control.xml.get_object('banner_status_image')
+            if chat_control.type_id == 'chat':
+                banner_status_img = chat_control.xml.get_object(
+                    'banner_status_image')
+            else:
+                banner_status_img = chat_control.xml.get_object(
+                    'gc_banner_status_image')
             banner_status_img.clear()
 
         # TODO: part below repeats a lot of code from 
ChatControl.draw_banner_text()
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to