From 94a57fd87ec020afe27884a30b2d96085bea06cb Mon Sep 17 00:00:00 2001 From: Lianhao Lu Date: Thu, 30 Jun 2011 23:02:47 -0700 Subject: ui/hob: Fixed the "build again" hang. Using gobject.threads_init() instead of gtk.gdk.threads_init(). These two modes are conflict to each other. Using gobject.threads_init() allows only the main thread to touch GUI(gtk) part. (Bitbake rev: b9698d0e8d681f1fd6ab8d28530136b85411386f) Signed-off-by: Lianhao Lu Signed-off-by: Joshua Lock Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/hob.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py index ab6022b7dc..175e5bdf6c 100644 --- a/bitbake/lib/bb/ui/hob.py +++ b/bitbake/lib/bb/ui/hob.py @@ -76,7 +76,7 @@ class MainWindow (gtk.Window): label.show() response = dialog.run() dialog.destroy() - if not response == gtk.RESPONSE_YES: + if response == gtk.RESPONSE_YES: self.model.reset() # NOTE: really? self.nb.set_current_page(0) return @@ -555,7 +555,6 @@ class MainWindow (gtk.Window): def main (server, eventHandler): gobject.threads_init() - gtk.gdk.threads_init() taskmodel = TaskListModel() handler = HobHandler(taskmodel, server) -- cgit v1.2.3-54-g00ecf