]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake/goggle: closing the progress dialog kills the UI
authorJoshua Lock <josh@linux.intel.com>
Mon, 10 Jan 2011 14:37:03 +0000 (14:37 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 8 Jun 2011 12:36:32 +0000 (13:36 +0100)
It's unlikely that someone wants to close the progress dialog
yet leave the UI (and BitBake process) running, so hook up
the progress dialogs delete-event to exit gtk.

(From Poky rev: c9bb30b232396bbdd3c97c1059e972d6a4abf637)

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/ui/goggle.py

index 86ab2f473c2cf5922b88a29a2c3ea79b96c55ec3..bd03d31983e1c2993d95fe84df10726eb71b1518 100644 (file)
@@ -70,6 +70,7 @@ def main (server, eventHandler):
     window = MainWindow ()
     window.show_all ()
     pbar = ProgressBar(window)
+    pbar.connect("delete-event", gtk.main_quit)
 
     # Create the object for the current build
     running_build = RunningBuild ()