From c4c79d4d4691e469860c3552762373d87711c148 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 14 Dec 2004 16:13:58 +0000 Subject: [PATCH] set trayicon checkbox unsensitive when trayicon module is not available --- plugins/gtkgui/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/gtkgui/config.py b/plugins/gtkgui/config.py index b17ba4e87..2ae9231dd 100644 --- a/plugins/gtkgui/config.py +++ b/plugins/gtkgui/config.py @@ -436,7 +436,7 @@ class preference_Window: #trayicon st = self.plugin.config['trayicon'] self.chk_trayicon.set_active(st) - if self.plugin.sleeper.getState() == common.sleepy.STATE_UNKNOWN: + if isinstance(self.plugin.systray, gtkgui.systrayDummy): self.chk_trayicon.set_sensitive(False) #Color for account text