[bitbake-devel] [PATCH] hob: set modal flag on progress dialog
Ross Burton
ross.burton at intel.com
Thu Sep 27 15:46:09 UTC 2012
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).
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
bitbake/lib/bb/ui/depexp.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bitbake/lib/bb/ui/depexp.py b/bitbake/lib/bb/ui/depexp.py
index 425302e..1a716a8 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)
--
1.7.10
More information about the bitbake-devel
mailing list