make popup insensitive on windows

This commit is contained in:
Marcos Pinto 2009-01-16 03:41:13 +00:00
parent 8f68fc9e07
commit a76550be68
1 changed files with 5 additions and 2 deletions

View File

@ -433,8 +433,11 @@ class Preferences(component.Component):
## Notification tab ## ## Notification tab ##
self.glade.get_widget("chk_ntf_tray_blink").set_active( self.glade.get_widget("chk_ntf_tray_blink").set_active(
self.gtkui_config["ntf_tray_blink"]) self.gtkui_config["ntf_tray_blink"])
self.glade.get_widget("chk_ntf_popup").set_active( if deluge.common.windows_check():
self.gtkui_config["ntf_popup"]) 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.glade.get_widget("chk_ntf_email").set_active(
self.gtkui_config["ntf_email"]) self.gtkui_config["ntf_email"])
self.glade.get_widget("chk_ntf_sound").set_active( self.glade.get_widget("chk_ntf_sound").set_active(