summaryrefslogtreecommitdiff
path: root/portato/gui/windows/main.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-07-28 21:40:28 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-07-28 21:40:28 +0200
commitcfd4f22891ee74c7da6f314cf1a88e1a54a027be (patch)
treef8aecf586f123f10cb7efe3266efb37b6c0a7392 /portato/gui/windows/main.py
parentd59de05688787f7214a7bf05299b5163764e0d21 (diff)
downloadportato-cfd4f22891ee74c7da6f314cf1a88e1a54a027be.tar.gz
portato-cfd4f22891ee74c7da6f314cf1a88e1a54a027be.tar.bz2
portato-cfd4f22891ee74c7da6f314cf1a88e1a54a027be.zip
New --oneshot-cb works
Diffstat (limited to '')
-rw-r--r--portato/gui/windows/main.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py
index 1b1ddac..b8869f8 100644
--- a/portato/gui/windows/main.py
+++ b/portato/gui/windows/main.py
@@ -642,6 +642,7 @@ class MainWindow (Window):
# queue list
self.queueOneshot = self.tree.get_widget("oneshotCB")
+ self.queueOneshotHandler = self.queueOneshot.connect("toggled", self.cb_oneshot_clicked)
self.queueList = self.tree.get_widget("queueList")
self.build_queue_list()
@@ -1271,14 +1272,20 @@ class MainWindow (Window):
return True
def cb_queue_list_selection (self, selection):
+
+ def set_val (val):
+ self.queueOneshot.handler_block(self.queueOneshotHandler)
+ self.queueOneshot.set_active(val)
+ self.queueOneshot.handler_unblock(self.queueOneshotHandler)
+
store, it = selection.get_selected()
if it:
if self.queueTree.is_in_emerge(it) and self.queueTree.iter_has_parent(it):
package = store.get_value(it, 0)
- self.queueOneshot.set_active(package in self.queue.oneshotmerge)
+ set_val(package in self.queue.oneshotmerge)
return True
- self.queueOneshot.set_active(False)
+ set_val(False)
return True
def cb_queue_row_activated (self, view, path, *args):