summaryrefslogtreecommitdiff
path: root/meta/recipes-graphics/builder/files
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2012-05-01 16:15:36 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-03 15:00:29 +0100
commitd4d8dd9e272ee651b98bb336e96be601af366d41 (patch)
treed2052820451eba1aab5d8ec348520bf47f70ce7f /meta/recipes-graphics/builder/files
parent753b22012f10c393c191d3116b9d38ee4be6d112 (diff)
downloadopenembedded-core-d4d8dd9e272ee651b98bb336e96be601af366d41.tar.gz
openembedded-core-d4d8dd9e272ee651b98bb336e96be601af366d41.tar.bz2
openembedded-core-d4d8dd9e272ee651b98bb336e96be601af366d41.tar.xz
openembedded-core-d4d8dd9e272ee651b98bb336e96be601af366d41.zip
builder: Add Please Wait Dialog Box
Add dialog box while bitbake starts hob to inform user to please wait for the hob screen to become visible. Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-graphics/builder/files')
-rw-r--r--meta/recipes-graphics/builder/files/builder_hob_start.sh2
-rw-r--r--meta/recipes-graphics/builder/files/please_wait_dialog.py28
2 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-graphics/builder/files/builder_hob_start.sh b/meta/recipes-graphics/builder/files/builder_hob_start.sh
index 98b2adbea..883535b0c 100644
--- a/meta/recipes-graphics/builder/files/builder_hob_start.sh
+++ b/meta/recipes-graphics/builder/files/builder_hob_start.sh
@@ -18,3 +18,5 @@ sed -i 's/^#PARALLEL_MAKE =/PARALLEL_MAKE =/g' conf/local.conf
hob &
matchbox-terminal&
+
+/etc/mini_x/please_wait_dialog.py &
diff --git a/meta/recipes-graphics/builder/files/please_wait_dialog.py b/meta/recipes-graphics/builder/files/please_wait_dialog.py
new file mode 100644
index 000000000..fd2381bc8
--- /dev/null
+++ b/meta/recipes-graphics/builder/files/please_wait_dialog.py
@@ -0,0 +1,28 @@
+#!/usr/bin/env python
+import glib
+import gtk
+
+def destroy_window_cb(widget, event):
+ gtk.main_quit()
+
+def all_done_cb():
+ gtk.main_quit()
+
+def dialogue_ui():
+ window = gtk.Window()
+ window.set_title("Please wait...")
+ window.connect("delete-event", destroy_window_cb)
+ window.show()
+ window.set_border_width(12)
+
+ msg = "Please wait while BitBake initializes Hob"
+ label = gtk.Label(msg)
+ label.show()
+ window.add(label)
+
+ glib.timeout_add_seconds(10, all_done_cb)
+
+if __name__ == "__main__":
+ dialogue_ui()
+ gtk.main()
+