diff options
author | Denis Fomin <fominde@gmail.com> | 2011-05-21 23:17:17 +0400 |
---|---|---|
committer | Denis Fomin <fominde@gmail.com> | 2011-05-21 23:17:17 +0400 |
commit | d638922384e43df6b1f2dd1ed45e362cec33b6ca (patch) | |
tree | 1cc4d50a2e7c898f4abf32b3a7a0f8ff9d3d5da0 | |
parent | 56ef5605100a66fdd0dfe3b2048bd4ce0925d2cf (diff) |
banner_tweaks plugin. prevent Tb in the gc if 'show_banner_image' is disabled
-rw-r--r-- | plugins/banner_tweaks/plugin.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/banner_tweaks/plugin.py b/plugins/banner_tweaks/plugin.py index d959097e1..cd3e11dcd 100644 --- a/plugins/banner_tweaks/plugin.py +++ b/plugins/banner_tweaks/plugin.py @@ -79,7 +79,12 @@ class BannerTweaksPlugin(GajimPlugin): 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() |