From 28d131b543b638589c243abb6b1c247c8c653321 Mon Sep 17 00:00:00 2001 From: Sebastian Heinlein Date: Thu, 23 Feb 2006 13:24:40 +0100 Subject: * Move the mime type handling of sources.lists to gnome-software-properties * Renamed mime type to text/x-apt-sources-list * Remove all depricated add-software-channel code * Add a schemas file for update-manager * Use dh_gconf * Software Properties: - Move the channel buttons to the bottom of the notebook to get more vertical space for the channels - Set a global window icon for SoftwareProperties and its children - Add drag and drop support for sources.list on the treeview_sources - Allow to enable and disable channels - Do not use so much space for rendering the sources lista - Use the comment instead of the URI in the channel list if we don't find a nice name - Show the type only on source channels - "binary" is too technial - Add some small sanity checks to aptsources - Use single quotes in the predefind distru names * Dialog add: - merge the custom and the default add dialog - sanity checks for the custom apt line, that do not allow to add a wrong one * Update Manager: - add an option to hide the reload reminder --- UpdateManager/UpdateManager.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'UpdateManager') diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py index 8b757bd1..e6394223 100644 --- a/UpdateManager/UpdateManager.py +++ b/UpdateManager/UpdateManager.py @@ -28,6 +28,7 @@ pygtk.require('2.0') import gtk import gtk.gdk import gtk.glade +import gconf import gobject import apt import apt_pkg @@ -40,7 +41,6 @@ import os.path import urllib2 import re import tempfile -import gconf import pango import subprocess import pwd @@ -290,6 +290,10 @@ class UpdateManager(SimpleGladeApp): self.restore_state() + def on_checkbutton_reminder_toggled(self, checkbutton): + self.gconfclient.set_bool("/apps/update-manager/remind_reload", + not checkbutton.get_active()) + def close(self, widget, data=None): if self.window_main.get_property("sensitive") is False: return True @@ -812,6 +816,10 @@ class UpdateManager(SimpleGladeApp): def check_auto_update(self): # Check if automatic update is enabled. If not show a dialog to inform # the user about the need of manual "reloads" + remind = self.gconfclient.get_bool("/apps/update-manager/remind_reload") + if remind == False: + return + update_days = apt_pkg.Config.FindI("APT::Periodic::Update-Package-Lists") if update_days < 1: self.dialog_manual_update.set_transient_for(self.window_main) -- cgit v1.2.3