From b5e8e2eb2b8bc9936070028ecf91ff8d0b7c33ef Mon Sep 17 00:00:00 2001 From: necoro <> Date: Wed, 11 Jul 2007 07:37:22 +0000 Subject: added SIGSTOP/SIGCONT support; SIGTERM now works ;) --- portato/gui/qt/windows.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'portato/gui/qt/windows.py') diff --git a/portato/gui/qt/windows.py b/portato/gui/qt/windows.py index 5f1100f..a61a6d7 100644 --- a/portato/gui/qt/windows.py +++ b/portato/gui/qt/windows.py @@ -742,6 +742,10 @@ class MainWindow (Window): self.consoleLayout.setSpacing(0) self.consoleTab.setLayout(self.consoleLayout) self.consoleLayout.addWidget(self.console) + + self.console.addAction(self.killAction) + self.console.addAction(self.pauseAction) + Qt.QObject.connect(self, Qt.SIGNAL("doTitleUpdate"), self._title_update) # build queueList @@ -863,6 +867,13 @@ class MainWindow (Window): self.db = Database() self.db.populate() + @Qt.pyqtSignature("bool") + def on_pauseAction_triggered (self, checked): + if checked: + self.queue.stop_emerge() + else: + self.queue.continue_emerge() + @Qt.pyqtSignature("") def on_killAction_triggered (self): self.queue.kill_emerge() -- cgit v1.2.3-70-g09d2