summaryrefslogtreecommitdiff
path: root/UpdateManager/UpdateManager.py
diff options
context:
space:
mode:
authorSebastian Heinlein <sebi@sebi-pc>2006-09-24 14:22:27 +0200
committerSebastian Heinlein <sebi@sebi-pc>2006-09-24 14:22:27 +0200
commit4de7b5c16a98fcc5e6d9ff4d32ca289c44a5192b (patch)
treed40d6464c7f2efbae607b62c40ace828d6df185f /UpdateManager/UpdateManager.py
parente3779b9cfd1f3bdc19841dff4709c8b2d4ad020c (diff)
downloadpython-apt-4de7b5c16a98fcc5e6d9ff4d32ca289c44a5192b.tar.gz
* place the cancel button into the changes textview
Diffstat (limited to 'UpdateManager/UpdateManager.py')
-rw-r--r--UpdateManager/UpdateManager.py7
1 files changed, 5 insertions, 2 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)