From 649048e5376baeb84a697dc640c90829ccc5796e Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Thu, 27 Sep 2012 16:46:09 +0100 Subject: 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 --- bitbake/lib/bb/ui/depexp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bitbake') diff --git a/bitbake/lib/bb/ui/depexp.py b/bitbake/lib/bb/ui/depexp.py index 425302e320..1a716a88bf 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) -- cgit v1.2.3-54-g00ecf