summaryrefslogtreecommitdiff
path: root/portato/gui/gtk/windows.py
diff options
context:
space:
mode:
authornecoro <>2007-08-07 06:09:41 +0000
committernecoro <>2007-08-07 06:09:41 +0000
commite3e2339cf2156a12b61b91f56c9ea596df57198e (patch)
tree561b195b652c5a22ac373a44d0f8501ed25508c0 /portato/gui/gtk/windows.py
parent02652967805e1b30be1f55b73cfc50fc2ac4bbe6 (diff)
downloadportato-e3e2339cf2156a12b61b91f56c9ea596df57198e.tar.gz
portato-e3e2339cf2156a12b61b91f56c9ea596df57198e.tar.bz2
portato-e3e2339cf2156a12b61b91f56c9ea596df57198e.zip
new threading model in gui_helper
Diffstat (limited to '')
-rw-r--r--portato/gui/gtk/windows.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/portato/gui/gtk/windows.py b/portato/gui/gtk/windows.py
index c1789bd..5d61f92 100644
--- a/portato/gui/gtk/windows.py
+++ b/portato/gui/gtk/windows.py
@@ -30,11 +30,11 @@ from portato.gui.gui_helper import Database, Config, EmergeQueue
from dialogs import *
from wrapper import GtkTree, GtkConsole
from usetips import UseTips
+from exception_handling import GtkThread
# other
import types, logging
from subprocess import Popen
-from threading import Thread
from gettext import lgettext as _
gtk.glade.bindtextdomain (APP, LOCALE_DIR)
@@ -1037,7 +1037,7 @@ class MainWindow (Window):
# set emerge queue
self.queueTree = GtkTree(self.queueList.get_model())
- self.queue = EmergeQueue(console = self.console, tree = self.queueTree, db = self.db, title_update = self.title_update)
+ self.queue = EmergeQueue(console = self.console, tree = self.queueTree, db = self.db, title_update = self.title_update, threadClass = GtkThread)
self.window.maximize()
@@ -1281,7 +1281,7 @@ class MainWindow (Window):
finally:
self.window.window.set_cursor(None)
- Thread(name="Update-Thread", target=__update).start()
+ GtkThread(name="Update-Thread", target=__update).start()
return True
@@ -1393,7 +1393,7 @@ class MainWindow (Window):
gobject.idle_add(cb_idle_watch, packages)
gobject.idle_add(cb_idle)
- Thread(name="Show Updates Thread", target = __update).start()
+ GtkThread(name="Show Updates Thread", target = __update).start()
return True
def cb_right_click (self, object, event):