remove the possibility to configure systray if module is not available. Fixes #5345
This commit is contained in:
parent
52c788795a
commit
31d2bcbe7d
2 changed files with 4 additions and 0 deletions
|
@ -314,6 +314,8 @@ class PreferencesWindow:
|
||||||
systray_combobox.set_active(1)
|
systray_combobox.set_active(1)
|
||||||
else:
|
else:
|
||||||
systray_combobox.set_active(2)
|
systray_combobox.set_active(2)
|
||||||
|
if not gajim.interface.systray_capabilities:
|
||||||
|
systray_combobox.set_sensitive(False)
|
||||||
|
|
||||||
# sounds
|
# sounds
|
||||||
if gajim.config.get('sounds_on'):
|
if gajim.config.get('sounds_on'):
|
||||||
|
|
|
@ -3609,6 +3609,8 @@ class Interface:
|
||||||
self.systray_capabilities = systray.HAS_SYSTRAY_CAPABILITIES
|
self.systray_capabilities = systray.HAS_SYSTRAY_CAPABILITIES
|
||||||
if self.systray_capabilities:
|
if self.systray_capabilities:
|
||||||
self.systray = systray.Systray()
|
self.systray = systray.Systray()
|
||||||
|
else:
|
||||||
|
gajim.config.set('trayicon', 'never')
|
||||||
|
|
||||||
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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue