allow WM to use several sizes of gajim icon so that it's nicer. Fixes #6839

This commit is contained in:
Yann Leboulanger 2011-04-27 17:19:42 +02:00
parent 829892f4c0
commit 0645a6e859
1 changed files with 7 additions and 3 deletions

View File

@ -2786,10 +2786,14 @@ class Interface:
import statusicon
self.systray = statusicon.StatusIcon()
pix = gtkgui_helpers.get_icon_pixmap('gajim', 32)
if pix is not None:
pixs = []
for size in (16, 32, 48, 64, 128):
pix = gtkgui_helpers.get_icon_pixmap('gajim', size)
if pix:
pixs.append(pix)
if pixs:
# set the icon to all windows
gtk.window_set_default_icon(pix)
gtk.window_set_default_icon_list(*pixs)
self.init_emoticons()
self.make_regexps()