]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: hob: set modal flag on progress dialog
authorRoss Burton <ross.burton@intel.com>
Thu, 27 Sep 2012 15:46:09 +0000 (16:46 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 28 Sep 2012 10:15:04 +0000 (11:15 +0100)
The entire interface isn't usable whilst the progress dialog is up so we might
as well set the modal flag so that some WMs (such as GNOME 3) can do nice things
with the dialog (such as pin it to the titlebar).

(Bitbake rev: 9a19fe8e8c65b75dbbb4ae5401df6d6838495bdd)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/ui/depexp.py

index 425302e320660aa0d7432e25f58cf8c2a2c8e7f3..1a716a88bf1c5e43ff42c2e84575b7bbce30d2d0 100644 (file)
@@ -220,7 +220,8 @@ def main(server, eventHandler):
 
     gtk.gdk.threads_enter()
     dep = DepExplorer()
-    bardialog = gtk.Dialog(parent=dep)
+    bardialog = gtk.Dialog(parent=dep,
+                           flags=gtk.DIALOG_MODAL|gtk.DIALOG_DESTROY_WITH_PARENT)
     bardialog.set_default_size(400, 50)
     pbar = HobProgressBar()
     bardialog.vbox.pack_start(pbar)