update the windows icons when we chage the iconset

This commit is contained in:
Yann Leboulanger 2005-04-01 19:58:54 +00:00
parent d409b248b5
commit d97506f97c
2 changed files with 11 additions and 1 deletions

View file

@ -76,7 +76,6 @@ class Preferences_window:
active = widget.get_active()
icon_string = model[active][0]
self.plugin.config['iconset'] = icon_string
self.plugin.roster.mkpixbufs()
self.plugin.roster.reload_pixbufs()
def on_account_text_colorbutton_color_set(self, widget):

View file

@ -1106,6 +1106,7 @@ class Roster_window:
break
def reload_pixbufs(self):
self.mkpixbufs()
# Update the roster
self.draw_roster()
# Update the status combobox
@ -1126,6 +1127,16 @@ class Roster_window:
for jid in self.plugin.windows[account]['gc']:
if jid != 'tabbed':
self.plugin.windows[account]['gc'][jid].udpate_pixbufs()
# Update windows icons
image = self.pixbufs['online']
if image.get_storage_type() == gtk.IMAGE_ANIMATION:
pixbuf = image.get_animation().get_static_image()
elif image.get_storage_type() == gtk.IMAGE_PIXBUF:
pixbuf = image.get_pixbuf()
for win in gtk.window_list_toplevels():
win.set_icon(pixbuf)
# Update roster_window icon with the status image
self.update_status_comboxbox()
def on_show_offline_contacts_menuitem_activate(self, widget):
"""when show offline option is changed: