summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLianhao Lu <lianhao.lu@intel.com>2011-07-01 06:02:47 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-01 16:17:35 (GMT)
commit94a57fd87ec020afe27884a30b2d96085bea06cb (patch)
tree75a7c034ad633ecd4447e5da215d4e25f498a452
parent39502562bf06042eac1e67ec5972b9fcbea1528f (diff)
downloadpoky-94a57fd87ec020afe27884a30b2d96085bea06cb.tar.gz
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 <lianhao.lu@intel.com> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/ui/hob.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py
index ab6022b..175e5bd 100644
--- a/bitbake/lib/bb/ui/hob.py
+++ b/bitbake/lib/bb/ui/hob.py
@@ -76,7 +76,7 @@ class MainWindow (gtk.Window):
76 label.show() 76 label.show()
77 response = dialog.run() 77 response = dialog.run()
78 dialog.destroy() 78 dialog.destroy()
79 if not response == gtk.RESPONSE_YES: 79 if response == gtk.RESPONSE_YES:
80 self.model.reset() # NOTE: really? 80 self.model.reset() # NOTE: really?
81 self.nb.set_current_page(0) 81 self.nb.set_current_page(0)
82 return 82 return
@@ -555,7 +555,6 @@ class MainWindow (gtk.Window):
555 555
556def main (server, eventHandler): 556def main (server, eventHandler):
557 gobject.threads_init() 557 gobject.threads_init()
558 gtk.gdk.threads_init()
559 558
560 taskmodel = TaskListModel() 559 taskmodel = TaskListModel()
561 handler = HobHandler(taskmodel, server) 560 handler = HobHandler(taskmodel, server)