From 4de7b5c16a98fcc5e6d9ff4d32ca289c44a5192b Mon Sep 17 00:00:00 2001 From: Sebastian Heinlein Date: Sun, 24 Sep 2006 14:22:27 +0200 Subject: * place the cancel button into the changes textview --- UpdateManager/UpdateManager.py | 7 +++- data/glade/UpdateManager.glade | 90 +----------------------------------------- 2 files changed, 7 insertions(+), 90 deletions(-) diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py index 7f62d0f0..f4c34ada 100644 --- a/UpdateManager/UpdateManager.py +++ b/UpdateManager/UpdateManager.py @@ -507,8 +507,11 @@ class UpdateManager(SimpleGladeApp): lock = thread.allocate_lock() lock.acquire() t=thread.start_new_thread(self.cache.get_changelog,(name,lock)) - changes_buffer.set_text(_("Downloading the list of changes...")) - button = self.button_cancel_dl_changelog + changes_buffer.set_text("%s\n" % _("Downloading list of changes...")) + iter = changes_buffer.get_iter_at_line(1) + anchor = changes_buffer.create_child_anchor(iter) + button = gtk.Button(stock="gtk-cancel") + self.textview_changes.add_child_at_anchor(button, anchor) button.show() id = button.connect("clicked", lambda w,lock: lock.release(), lock) diff --git a/data/glade/UpdateManager.glade b/data/glade/UpdateManager.glade index 2a4965fd..a11a5a43 100644 --- a/data/glade/UpdateManager.glade +++ b/data/glade/UpdateManager.glade @@ -468,7 +468,7 @@ True True - False + True 6 @@ -533,92 +533,6 @@ True - - - - True - GTK_BUTTONBOX_END - 0 - - - - True - True - GTK_RELIEF_NORMAL - True - - - - True - 0.5 - 0.5 - 0 - 0 - 0 - 0 - 0 - 0 - - - - True - False - 2 - - - - True - gtk-cancel - 4 - 0.5 - 0.5 - 0 - 0 - - - 0 - False - False - - - - - - True - Cancel _Download - True - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - False - False - - - - - - - - - - - 0 - False - False - - False @@ -1288,7 +1202,7 @@ True <b><big>You must check for updates manually</big></b> -Your system does not check for updates automatically. You can configure this behavior in "System" -> "Administration" -> "Software Properties". +Your system does not check for updates automatically. You can configure this behavior in <i>Software Sources</i> on the <i>Internet Updates</i> tab. False True GTK_JUSTIFY_LEFT -- cgit v1.2.3