[elghinn] Set default icon before creating roster so it's done for roster too

This commit is contained in:
Jean-Marie Traissard 2008-04-18 09:43:26 +00:00
parent 968b2acc4f
commit a095a3249e
2 changed files with 4 additions and 4 deletions

1
THANKS
View file

@ -2,6 +2,7 @@ Alexander Futász
Alexander V. Butenko Alexander V. Butenko
Alexey Nezhdanov Alexey Nezhdanov
Alfredo Junix Alfredo Junix
Anaël Verrier
Anders Ström Anders Ström
Andrew Sayman Andrew Sayman
Anton Shmigirilov Anton Shmigirilov

View file

@ -3039,13 +3039,12 @@ class Interface:
if self.systray_capabilities and gajim.config.get('trayicon'): if self.systray_capabilities and gajim.config.get('trayicon'):
self.show_systray() self.show_systray()
self.roster = roster_window.RosterWindow()
path_to_file = os.path.join(gajim.DATA_DIR, 'pixmaps', 'gajim.png') path_to_file = os.path.join(gajim.DATA_DIR, 'pixmaps', 'gajim.png')
pix = gtk.gdk.pixbuf_new_from_file(path_to_file) pix = gtk.gdk.pixbuf_new_from_file(path_to_file)
# set the icon to all newly opened windows # set the icon to all windows
gtk.window_set_default_icon(pix) gtk.window_set_default_icon(pix)
self.roster.window.set_icon_from_file(path_to_file) # and to roster window
self.roster = roster_window.RosterWindow()
self.init_emoticons() self.init_emoticons()
self.make_regexps() self.make_regexps()