From ae65c0496cc2c0a2451fbe6d551b36d1dba503c4 Mon Sep 17 00:00:00 2001 From: Sebastian Heinlein Date: Sun, 12 Mar 2006 22:22:37 +0100 Subject: * show a dialog that provides a button to reload the channel information if the channels changed - the updating does not work at the moment. but the strings of the dialog are in before string freeze --- SoftwareProperties/SoftwareProperties.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'SoftwareProperties/SoftwareProperties.py') diff --git a/SoftwareProperties/SoftwareProperties.py b/SoftwareProperties/SoftwareProperties.py index f8fd45b9..95e5b5b3 100644 --- a/SoftwareProperties/SoftwareProperties.py +++ b/SoftwareProperties/SoftwareProperties.py @@ -320,13 +320,21 @@ class SoftwareProperties(SimpleGladeApp): for i in cnf.List(): f.write("APT::Periodic::%s \"%s\";\n" % (i, cnf.FindI(i))) f.close() - + def save_sourceslist(self): #location = "/etc/apt/sources.list" #shutil.copy(location, location + ".save") self.sourceslist.backup(".save") self.sourceslist.save() - + # show a dialog that a reload of the channel information is required + if self.modified == True: + #res = self.dialog_cache_outofdate.run() + #if res == gtk.RESPONSE_ACCEPT: + # self.window_main.set_sensitive(False) + # FIXME DO SOME SYNAPTIC MAGIC + # self.window_main.set_sensitive(True) + pass + def on_add_clicked(self, widget): dialog = dialog_add.dialog_add(self.window_main, self.sourceslist, self.datadir) -- cgit v1.2.3