update the windows icons when we chage the iconset
This commit is contained in:
parent
d409b248b5
commit
d97506f97c
2 changed files with 11 additions and 1 deletions
|
@ -76,7 +76,6 @@ class Preferences_window:
|
||||||
active = widget.get_active()
|
active = widget.get_active()
|
||||||
icon_string = model[active][0]
|
icon_string = model[active][0]
|
||||||
self.plugin.config['iconset'] = icon_string
|
self.plugin.config['iconset'] = icon_string
|
||||||
self.plugin.roster.mkpixbufs()
|
|
||||||
self.plugin.roster.reload_pixbufs()
|
self.plugin.roster.reload_pixbufs()
|
||||||
|
|
||||||
def on_account_text_colorbutton_color_set(self, widget):
|
def on_account_text_colorbutton_color_set(self, widget):
|
||||||
|
|
|
@ -1106,6 +1106,7 @@ class Roster_window:
|
||||||
break
|
break
|
||||||
|
|
||||||
def reload_pixbufs(self):
|
def reload_pixbufs(self):
|
||||||
|
self.mkpixbufs()
|
||||||
# Update the roster
|
# Update the roster
|
||||||
self.draw_roster()
|
self.draw_roster()
|
||||||
# Update the status combobox
|
# Update the status combobox
|
||||||
|
@ -1126,6 +1127,16 @@ class Roster_window:
|
||||||
for jid in self.plugin.windows[account]['gc']:
|
for jid in self.plugin.windows[account]['gc']:
|
||||||
if jid != 'tabbed':
|
if jid != 'tabbed':
|
||||||
self.plugin.windows[account]['gc'][jid].udpate_pixbufs()
|
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):
|
def on_show_offline_contacts_menuitem_activate(self, widget):
|
||||||
"""when show offline option is changed:
|
"""when show offline option is changed:
|
||||||
|
|
Loading…
Add table
Reference in a new issue