From a76550be680b99f09bff0af40e27a726d5c82405 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Fri, 16 Jan 2009 03:41:13 +0000 Subject: [PATCH] make popup insensitive on windows --- deluge/ui/gtkui/preferences.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/deluge/ui/gtkui/preferences.py b/deluge/ui/gtkui/preferences.py index 71ce29a6c..75a4f0b62 100644 --- a/deluge/ui/gtkui/preferences.py +++ b/deluge/ui/gtkui/preferences.py @@ -433,8 +433,11 @@ class Preferences(component.Component): ## Notification tab ## self.glade.get_widget("chk_ntf_tray_blink").set_active( self.gtkui_config["ntf_tray_blink"]) - self.glade.get_widget("chk_ntf_popup").set_active( - self.gtkui_config["ntf_popup"]) + if deluge.common.windows_check(): + self.gtkui_config["ntf_popup"].set_sensitive(False) + else: + self.glade.get_widget("chk_ntf_popup").set_active( + self.gtkui_config["ntf_popup"]) self.glade.get_widget("chk_ntf_email").set_active( self.gtkui_config["ntf_email"]) self.glade.get_widget("chk_ntf_sound").set_active(