diff options
| author | Sebastian Heinlein <sebastian.heinlein@web.de> | 2006-02-07 13:27:21 +0100 |
|---|---|---|
| committer | Sebastian Heinlein <sebastian.heinlein@web.de> | 2006-02-07 13:27:21 +0100 |
| commit | 99ab5920ad9028f493d39b950d73652e88074289 (patch) | |
| tree | 8f95f83046e56569196daa982455dbfe9cda0b9b /SoftwareProperties/SoftwareProperties.py | |
| parent | c30ae70b655e7ede7cd3ecade20eb9e6c1a7b8c4 (diff) | |
| parent | e117da0ae3be7b56f60aac310a45d2b8f2704936 (diff) | |
| download | python-apt-99ab5920ad9028f493d39b950d73652e88074289.tar.gz | |
* Merged from mvo
Diffstat (limited to 'SoftwareProperties/SoftwareProperties.py')
| -rw-r--r-- | SoftwareProperties/SoftwareProperties.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/SoftwareProperties/SoftwareProperties.py b/SoftwareProperties/SoftwareProperties.py index 5422ba55..16adae43 100644 --- a/SoftwareProperties/SoftwareProperties.py +++ b/SoftwareProperties/SoftwareProperties.py @@ -117,8 +117,8 @@ class SoftwareProperties(SimpleGladeApp): # Automatic removal of cached packages by age self.combobox_delete_interval_mapping = { 0 : 7, - 1 : 14, - 2 : 31 } + 1 : 14, + 2 : 30 } delete_days = apt_pkg.Config.FindI(CONF_MAP["max_age"]) @@ -133,9 +133,9 @@ class SoftwareProperties(SimpleGladeApp): % delete_days)) self.combobox_delete_interval_mapping[3] = delete_days - for key in self.combobox_interval_mapping: - if self.combobox_interval_mapping[key] == update_days: - self.combobox_update_interval.set_active(key) + for key in self.combobox_delete_interval_mapping: + if self.combobox_delete_interval_mapping[key] == delete_days: + self.combobox_delete_interval.set_active(key) break if delete_days >= 1 and apt_pkg.Config.FindI(CONF_MAP["autoclean"]) != 0: @@ -211,7 +211,7 @@ class SoftwareProperties(SimpleGladeApp): if not value == apt_pkg.Config.FindI(CONF_MAP["autoupdate"]): apt_pkg.Config.Set(CONF_MAP["autoupdate"], str(value)) self.write_config() - + def on_opt_autoupdate_toggled(self, widget): if self.checkbutton_auto_update.get_active(): self.combobox_update_interval.set_sensitive(True) |
