Skip to contentSkip to conversation

hob: set modal flag on progress dialog

PATCH New Ross Burton 1 participant 1 message Sep 27, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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/lib/bb/ui/depexp.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
bitbake/lib/bb/ui/depexp.py +2 -1
index 425302e..1a716a8 100644
@@ -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)
Signature · 1 line
1.7.10