allow WM to use several sizes of gajim icon so that it's nicer. Fixes #6839
This commit is contained in:
parent
829892f4c0
commit
0645a6e859
1 changed files with 7 additions and 3 deletions
|
@ -2786,10 +2786,14 @@ class Interface:
|
||||||
import statusicon
|
import statusicon
|
||||||
self.systray = statusicon.StatusIcon()
|
self.systray = statusicon.StatusIcon()
|
||||||
|
|
||||||
pix = gtkgui_helpers.get_icon_pixmap('gajim', 32)
|
pixs = []
|
||||||
if pix is not None:
|
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
|
# set the icon to all windows
|
||||||
gtk.window_set_default_icon(pix)
|
gtk.window_set_default_icon_list(*pixs)
|
||||||
|
|
||||||
self.init_emoticons()
|
self.init_emoticons()
|
||||||
self.make_regexps()
|
self.make_regexps()
|
||||||
|
|
Loading…
Add table
Reference in a new issue