[bitbake-devel] [PATCH 01/10] ui/hob: Fixed the "build again" hang.
Joshua Lock
josh at linux.intel.com
Fri Jul 1 06:02:47 UTC 2011
From: Lianhao Lu <lianhao.lu at intel.com>
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.
Signed-off-by: Lianhao Lu <lianhao.lu at intel.com>
Signed-off-by: Joshua Lock <josh at linux.intel.com>
---
lib/bb/ui/hob.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/lib/bb/ui/hob.py b/lib/bb/ui/hob.py
index ab6022b..175e5bd 100644
--- a/lib/bb/ui/hob.py
+++ b/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)
--
1.7.5.4
More information about the bitbake-devel
mailing list