From: Ross Burton Date: Thu, 27 Sep 2012 15:46:09 +0000 (+0100) Subject: bitbake: hob: set modal flag on progress dialog X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=649048e5376baeb84a697dc640c90829ccc5796e;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake: hob: set modal flag on progress dialog 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 Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/ui/depexp.py b/bitbake/lib/bb/ui/depexp.py index 425302e3206..1a716a88bf1 100644 --- a/bitbake/lib/bb/ui/depexp.py +++ b/bitbake/lib/bb/ui/depexp.py @@ -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)