[poky] [PATCH 13/13] bitbake/progress: make progress dialog modal for parent window
Joshua Lock
josh at linux.intel.com
Fri Feb 4 00:54:42 PST 2011
From: Joshua Lock <josh at linux.intel.com>
Signed-off-by: Joshua Lock <josh at linux.intel.com>
---
bitbake/lib/bb/ui/crumbs/progress.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/bitbake/lib/bb/ui/crumbs/progress.py b/bitbake/lib/bb/ui/crumbs/progress.py
index ce3a6c3..0c7ad96 100644
--- a/bitbake/lib/bb/ui/crumbs/progress.py
+++ b/bitbake/lib/bb/ui/crumbs/progress.py
@@ -3,11 +3,10 @@ import gtk
class ProgressBar(gtk.Dialog):
def __init__(self, parent):
- gtk.Dialog.__init__(self)
+ gtk.Dialog.__init__(self, flags=(gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT))
self.set_title("Parsing metadata, please wait...")
self.set_default_size(500, 0)
self.set_transient_for(parent)
- self.set_destroy_with_parent(True)
self.progress = gtk.ProgressBar()
self.vbox.pack_start(self.progress)
self.show_all()
--
1.7.4
More information about the poky
mailing list