show the MUC icon in the contact context menu for invite menuitem. Fixes #2407

This commit is contained in:
Yann Leboulanger 2006-09-15 09:39:37 +00:00
parent 8c243eab43
commit 3504a77713
1 changed files with 8 additions and 0 deletions

View File

@ -1379,6 +1379,14 @@ class RosterWindow:
img.set_from_file(path_to_kbd_input_img) img.set_from_file(path_to_kbd_input_img)
rename_menuitem.set_image(img) rename_menuitem.set_image(img)
iconset = gajim.config.get('iconset')
if not iconset:
iconset = DEFAULT_ICONSET
path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '16x16')
state_images = self.load_iconset(path)
if state_images.has_key('muc_active'):
invite_menuitem.set_image(state_images['muc_active'])
above_subscription_separator = xml.get_widget( above_subscription_separator = xml.get_widget(
'above_subscription_separator') 'above_subscription_separator')
subscription_menuitem = xml.get_widget('subscription_menuitem') subscription_menuitem = xml.get_widget('subscription_menuitem')