[jhbuild: 36/60] [gui] exit with return code, when called as a normal buildscript
- From: Frederic Peters <fpeters src gnome org>
- To: svn-commits-list gnome org
- Subject: [jhbuild: 36/60] [gui] exit with return code, when called as a normal buildscript
- Date: Sat, 6 Jun 2009 09:50:39 -0400 (EDT)
commit 364685363c94f80a41a112def343e16d9383ee7a
Author: Frédéric Péters <fpeters 0d be>
Date: Thu May 21 11:36:20 2009 +0200
[gui] exit with return code, when called as a normal buildscript
---
jhbuild/frontends/gtkui.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/jhbuild/frontends/gtkui.py b/jhbuild/frontends/gtkui.py
index ed8a8fe..4bbc3ea 100644
--- a/jhbuild/frontends/gtkui.py
+++ b/jhbuild/frontends/gtkui.py
@@ -267,8 +267,11 @@ class AppWindow(gtk.Window, buildscript.BuildScript):
self.modulelist = self.orig_modulelist
self.show()
self.build_button.emit('clicked')
- gtk.main()
- return buildscript.BuildScript.build(self)
+ while gtk.events_pending():
+ gtk.main_iteration()
+ return self.rc
+ self.rc = buildscript.BuildScript.build(self)
+ return self.rc
def start_build(self):
self.build_button.set_sensitive(False)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]