From ddec7f64a92f4705d713dcf23754a68e7dd1bcd3 Mon Sep 17 00:00:00 2001 From: Sebastian Heinlein Date: Mon, 23 Jan 2006 09:26:58 +0100 Subject: * Fixed some spacings * Wording: "No updates available" -> "Your system is up-to-date" * Wording: starting header - "Available Updates" -> "Install software updates" * Wording: "_Install Updates" -> "_Install". the former one was just too long, espcially in translations * If there are no availabe updates: - unset sensitive treeview_update - set default to button "cancel" - hide label_downsize Else: - set default to button "install" --- UpdateManager/UpdateManager.py | 13 ++++++++++--- data/UpdateManager.glade | 13 ++++++------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py index 7f832c06..17cdcbd1 100644 --- a/UpdateManager/UpdateManager.py +++ b/UpdateManager/UpdateManager.py @@ -387,12 +387,20 @@ class UpdateManager(SimpleGladeApp): def update_count(self): if len(self.packages) == 0: - text_header= _("No updates available") + text_header= ""+_("Your system is up-to-date")+"" text_download = "" + self.expander_details.set_sensitive(False) + self.treeview_update.set_sensitive(False) + self.label_downsize.hide() + self.button_cancel.grab_default() else: - text_header = gettext.ngettext("You can install one update", "You can install %s updates" % len(self.packages), len(self.packages)) + text_header = ""+gettext.ngettext("You can install one update", "You can install %s updates" % len(self.packages), len(self.packages))+"" text_download = _("Download size: %s" % apt_pkg.SizeToStr(self.dl_size)) + self.expander_details.set_sensitive(True) + self.treeview_update.set_sensitive(False) + self.label_downsize.show() + self.button_install.grab_default() self.label_header.set_markup(text_header) self.label_downsize.set_markup(text_download) @@ -665,7 +673,6 @@ class UpdateManager(SimpleGladeApp): text = "%s\n\n%s" % (_("Your system is up-to-date"), _("There are no updates available.")) self.label_header.set_markup(text) - self.store.append([False, _("Your system is up-to-date!"), None, None, None, None, None]) # make sure no install is possible self.button_install.set_sensitive(False) self.textview_changes.get_buffer().set_text("") diff --git a/data/UpdateManager.glade b/data/UpdateManager.glade index 80f82a12..c9b50999 100644 --- a/data/UpdateManager.glade +++ b/data/UpdateManager.glade @@ -26,7 +26,7 @@ 6 True False - 12 + 6 @@ -37,7 +37,6 @@ - 6 True False 12 @@ -67,7 +66,7 @@ True - <big><b>Available Updates</b></big> + <big><b>Install software updates</b></big> True True GTK_JUSTIFY_LEFT @@ -251,7 +250,6 @@ - True False False @@ -753,7 +751,7 @@ True - _Install Updates + _Install True False GTK_JUSTIFY_LEFT @@ -953,13 +951,13 @@ Need to get the changes from the central server GDK_GRAVITY_NORTH_WEST True False - True + False True False - 0 + 6 @@ -1002,6 +1000,7 @@ Need to get the changes from the central server + 6 True True GTK_POLICY_AUTOMATIC -- cgit v1.2.3