summaryrefslogtreecommitdiff
path: root/UpdateManager
diff options
context:
space:
mode:
authorglatzor@ubuntu.com <>2006-08-11 16:47:33 +0200
committerglatzor@ubuntu.com <>2006-08-11 16:47:33 +0200
commita53e49c46faae31eccd7e65b8ffbcb91fbcaf18a (patch)
tree4a800fb4d8f3304db4184264ff88f04ca1556f09 /UpdateManager
parent3661b29dc3efab4f62ce386e763e5829b740f572 (diff)
downloadpython-apt-a53e49c46faae31eccd7e65b8ffbcb91fbcaf18a.tar.gz
* no need to convert the path to a string in call of toggled
* support row activation (pressing space) to toggle updates
Diffstat (limited to 'UpdateManager')
-rw-r--r--UpdateManager/UpdateManager.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py
index e551d8f4..78348e60 100644
--- a/UpdateManager/UpdateManager.py
+++ b/UpdateManager/UpdateManager.py
@@ -730,9 +730,9 @@ class UpdateManager(SimpleGladeApp):
self.window_main.set_sensitive(True)
self.window_main.window.set_cursor(None)
- def toggled(self, renderer, path_string):
+ def toggled(self, renderer, path):
""" a toggle button in the listview was toggled """
- iter = self.store.get_iter_from_string(path_string)
+ iter = self.store.get_iter(path)
if self.store.get_value(iter, LIST_INSTALL):
self.store.set_value(iter, LIST_INSTALL, False)
self.remove_update(self.store.get_value(iter, LIST_PKG))
@@ -740,6 +740,12 @@ class UpdateManager(SimpleGladeApp):
self.store.set_value(iter, LIST_INSTALL, True)
self.add_update(self.store.get_value(iter, LIST_PKG))
+ def on_treeview_update_row_activated(self, treeview, path, column, *args):
+ """
+ If an update row was activated (by pressing space), toggle the
+ install check box
+ """
+ self.toggled(None, path)
def exit(self):
""" exit the application, save the state """