enc stuff

This commit is contained in:
Marcos Pinto 2007-05-29 09:38:10 +00:00
parent e60c08c184
commit 6a1cf41fc4
2 changed files with 16 additions and 16 deletions

Binary file not shown.

View File

@ -40,30 +40,30 @@ class PreferencesDlg:
try: try:
if (self.preferences.get("chk_encin_disabled", bool, True)): if (self.preferences.get("chk_encin_disabled", bool, True)):
self.glade.get_widget("chk_encin_enabled").set_active(False) self.glade.get_widget("chk_encin_enabled").set_active(False)
self.glade.get_widget("chk_encin_enabled").set_active(False) self.glade.get_widget("chk_encin_forced").set_active(False)
elif not(self.glade.get_widget("chk_encin_enabled", bool, False)): elif not(self.glade.get_widget("chk_encin_enabled", bool, False)):
self.glade.get_widget("chk_encin_enabled").set_active(False) self.glade.get_widget("chk_encin_disabled").set_active(False)
self.glade.get_widget("chk_encin_enabled").set_active(False) self.glade.get_widget("chk_encin_forced").set_active(False)
elif not(self.glade.get_widget("chk_encin_forced", bool, False)): elif not(self.glade.get_widget("chk_encin_forced", bool, False)):
self.glade.get_widget("chk_encin_enabled").set_active(False) self.glade.get_widget("chk_encin_enabled").set_active(False)
self.glade.get_widget("chk_encin_enabled").set_active(False) self.glade.get_widget("chk_encin_disabled").set_active(False)
if(self.preferences.get("chk_encout_disabled", bool, True)): if(self.preferences.get("chk_encout_disabled", bool, True)):
self.glade.get_widget("chk_encout_enabled").set_active(False) self.glade.get_widget("chk_encout_enabled").set_active(False)
self.glade.get_widget("chk_encout_enabled").set_active(False) self.glade.get_widget("chk_encout_forced").set_active(False)
elif not(self.glade.get_widget("chk_encout_enabled", bool, False)): elif not(self.glade.get_widget("chk_encout_enabled", bool, False)):
self.glade.get_widget("chk_encout_enabled").set_active(False) self.glade.get_widget("chk_encout_disabled").set_active(False)
self.glade.get_widget("chk_encout_enabled").set_active(False) self.glade.get_widget("chk_encout_forced").set_active(False)
elif not(self.glade.get_widget("chk_encout_forced", bool, False)): elif not(self.glade.get_widget("chk_encout_forced", bool, False)):
self.glade.get_widget("chk_encout_enabled").set_active(False) self.glade.get_widget("chk_encout_enabled").set_active(False)
self.glade.get_widget("chk_encout_enabled").set_active(False) if(self.preferences.get("chk_level_plaintext", bool, True)):
self.glade.get_widget("chk_level_rc4").set_active(False)
self.glade.get_widget("chk_level_both").set_active(False)
elif not(self.glade.get_widget("chk_level_both", bool, False)):
self.glade.get_widget("chk_level_plaintext").set_active(False)
self.glade.get_widget("chk_level_rc4").set_active(False)
elif not(self.glade.get_widget("chk_level_both", bool, False)):
self.glade.get_widget("chk_level_rc4").set_active(False)
self.glade.get_widget("chk_level_plaintext").set_active(False)
self.glade.get_widget("chk_prefer_rc4").set_active(self.preferences.get("prefer_rc4", bool, default=True)) self.glade.get_widget("chk_prefer_rc4").set_active(self.preferences.get("prefer_rc4", bool, default=True))
self.glade.get_widget("chk_use_tray").set_active(self.preferences.get("enable_system_tray", bool, default=True)) self.glade.get_widget("chk_use_tray").set_active(self.preferences.get("enable_system_tray", bool, default=True))
self.glade.get_widget("chk_min_on_close").set_active(self.preferences.get("close_to_tray", bool, default=False)) self.glade.get_widget("chk_min_on_close").set_active(self.preferences.get("close_to_tray", bool, default=False))