summaryrefslogtreecommitdiff
path: root/UpdateManager
diff options
context:
space:
mode:
authorSebastian Heinlein <sebastian.heinlein@web.de>2006-03-23 18:18:20 +0100
committerSebastian Heinlein <sebastian.heinlein@web.de>2006-03-23 18:18:20 +0100
commitc4792be3f2c741a8b343468e21410f52e991504a (patch)
tree12d56a4409c7cee1b1ed411c36c631f3d77f084f /UpdateManager
parentd201e6bd42dbe0b467ca967dbf430ca815d29839 (diff)
downloadpython-apt-c4792be3f2c741a8b343468e21410f52e991504a.tar.gz
* do not select the first update if a new one is added - #36140
Diffstat (limited to 'UpdateManager')
-rw-r--r--UpdateManager/UpdateManager.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py
index 1c996a66..47a1cb14 100644
--- a/UpdateManager/UpdateManager.py
+++ b/UpdateManager/UpdateManager.py
@@ -428,17 +428,16 @@ class UpdateManager(SimpleGladeApp):
self.treeview_update.set_sensitive(False)
self.label_downsize.set_text=""
self.button_close.grab_default()
+ return (text_header, text_download, None)
else:
text_header = "<big><b>"+gettext.ngettext("You can install one update", "You can install %s updates" % len(self.store), len(self.store))+"</b></big>"
text_download = _("Download size: %s" % apt_pkg.SizeToStr(self.dl_size))
- self.treeview_update.set_cursor(0)
self.expander_details.set_sensitive(True)
self.treeview_update.set_sensitive(True)
self.button_install.grab_default()
+ return (text_header, text_download, 0)
- self.label_header.set_markup(text_header)
- self.label_downsize.set_markup(text_download)
def activate_details(self, expander, data):
expanded = self.expander_details.get_expanded()
@@ -631,7 +630,10 @@ class UpdateManager(SimpleGladeApp):
i = i + 1
- self.update_count()
+ (text_header, text_download, selected) = self.update_count()
+ self.label_header.set_markup(text_header)
+ self.label_downsize.set_markup(text_download)
+ self.treeview_update.set_cursor(selected)
return False
def dist_no_longer_supported(self, meta_release):