summaryrefslogtreecommitdiff
path: root/SoftwareProperties/SoftwareProperties.py
diff options
context:
space:
mode:
authorSebastian Heinlein <sebastian.heinlein@web.de>2006-03-12 22:22:37 +0100
committerSebastian Heinlein <sebastian.heinlein@web.de>2006-03-12 22:22:37 +0100
commitae65c0496cc2c0a2451fbe6d551b36d1dba503c4 (patch)
tree90d7e5b7f9fed1e62570e9d52b48c8d6d020e814 /SoftwareProperties/SoftwareProperties.py
parentaa2600ccb1fcc37178ed70ea2a0261407a54170c (diff)
downloadpython-apt-ae65c0496cc2c0a2451fbe6d551b36d1dba503c4.tar.gz
* 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
Diffstat (limited to 'SoftwareProperties/SoftwareProperties.py')
-rw-r--r--SoftwareProperties/SoftwareProperties.py12
1 files changed, 10 insertions, 2 deletions
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)