summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--UpdateManager/UpdateManager.py10
-rw-r--r--data/glade/UpdateManager.glade1
2 files changed, 9 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 """
diff --git a/data/glade/UpdateManager.glade b/data/glade/UpdateManager.glade
index 1221e78c..372be566 100644
--- a/data/glade/UpdateManager.glade
+++ b/data/glade/UpdateManager.glade
@@ -233,6 +233,7 @@
<atkproperty name="AtkObject::accessible_name" translatable="yes">updates</atkproperty>
</accessibility>
<signal name="cursor_changed" handler="on_treeview_update_cursor_changed" last_modification_time="Tue, 29 Nov 2005 17:19:48 GMT"/>
+ <signal name="row_activated" handler="on_treeview_update_row_activated" last_modification_time="Fri, 11 Aug 2006 14:28:59 GMT"/>
</widget>
</child>
</widget>