]> code.ossystems Code Review - openembedded-core.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, 12 Jan 2011 11:43:50 +0000 (11:43 +0000)
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.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
bitbake/lib/bb/ui/goggle.py

index 3c6a014dc24e549af63a3367859b25774fbd90c0..1905c0c20152bc74fd96a6b89853c1137d7311c4 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 ()