Explorar o código

bitbake/goggle: closing the progress dialog kills the UI

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>
Joshua Lock %!s(int64=14) %!d(string=hai) anos
pai
achega
c9bb30b232
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      bitbake/lib/bb/ui/goggle.py

+ 1 - 0
bitbake/lib/bb/ui/goggle.py

@@ -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 ()