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 ++- data/SoftwarePropertiesDialogs.glade | 129 +++++++++++++++++++++++++++++++ 2 files changed, 139 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) diff --git a/data/SoftwarePropertiesDialogs.glade b/data/SoftwarePropertiesDialogs.glade index da1df02b..7dab0228 100644 --- a/data/SoftwarePropertiesDialogs.glade +++ b/data/SoftwarePropertiesDialogs.glade @@ -986,4 +986,133 @@ Source + + 6 + True + + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + False + False + True + True + True + GDK_WINDOW_TYPE_HINT_DIALOG + GDK_GRAVITY_NORTH_WEST + True + False + False + + + + True + False + 12 + + + + True + GTK_BUTTONBOX_END + + + + True + True + True + True + True + _Reload + True + GTK_RELIEF_NORMAL + True + -10 + + + + + + True + True + True + gtk-close + True + GTK_RELIEF_NORMAL + True + -7 + + + + + 0 + False + True + GTK_PACK_END + + + + + + 6 + True + False + 12 + + + + True + gtk-dialog-info + 6 + 0 + 0 + 0 + 0 + + + 0 + False + True + + + + + + True + True + <b><big>The channel information is out-of-date</big></b> + +You have to reload the channel information to install software and updates from newly added or changed channels. + +You need a working internet connection to continue. + False + True + GTK_JUSTIFY_LEFT + True + True + 0 + 0 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False + + + + + 0 + True + True + + + + + + -- cgit v1.2.3