summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorLianhao Lu <lianhao.lu@intel.com>2011-06-30 23:02:47 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-01 17:17:35 +0100
commit94a57fd87ec020afe27884a30b2d96085bea06cb (patch)
tree75a7c034ad633ecd4447e5da215d4e25f498a452 /bitbake
parent39502562bf06042eac1e67ec5972b9fcbea1528f (diff)
downloadast2050-yocto-poky-94a57fd87ec020afe27884a30b2d96085bea06cb.zip
ast2050-yocto-poky-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>
Diffstat (limited to 'bitbake')
-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):
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)
OpenPOWER on IntegriCloud