diff options
author | Saul Wold <sgw@linux.intel.com> | 2012-05-01 16:15:36 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-03 15:48:08 +0100 |
commit | 5e77a844d54ffde229bc1159dd52b6692f42c317 (patch) | |
tree | ef91c4f015507ddcadb50592ebcd07c6327040d2 /meta/recipes-graphics/builder/files | |
parent | 188dff3daf048e369bcab0d1db2964490e43d734 (diff) | |
download | poky-5e77a844d54ffde229bc1159dd52b6692f42c317.tar.gz |
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.
(From OE-Core rev: d4d8dd9e272ee651b98bb336e96be601af366d41)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/builder/files')
-rw-r--r-- | meta/recipes-graphics/builder/files/builder_hob_start.sh | 2 | ||||
-rw-r--r-- | meta/recipes-graphics/builder/files/please_wait_dialog.py | 28 |
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 98b2adbeae..883535b0ca 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 | |||
18 | hob & | 18 | hob & |
19 | 19 | ||
20 | matchbox-terminal& | 20 | matchbox-terminal& |
21 | |||
22 | /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 0000000000..fd2381bc88 --- /dev/null +++ b/meta/recipes-graphics/builder/files/please_wait_dialog.py | |||
@@ -0,0 +1,28 @@ | |||
1 | #!/usr/bin/env python | ||
2 | import glib | ||
3 | import gtk | ||
4 | |||
5 | def destroy_window_cb(widget, event): | ||
6 | gtk.main_quit() | ||
7 | |||
8 | def all_done_cb(): | ||
9 | gtk.main_quit() | ||
10 | |||
11 | def dialogue_ui(): | ||
12 | window = gtk.Window() | ||
13 | window.set_title("Please wait...") | ||
14 | window.connect("delete-event", destroy_window_cb) | ||
15 | window.show() | ||
16 | window.set_border_width(12) | ||
17 | |||
18 | msg = "Please wait while BitBake initializes Hob" | ||
19 | label = gtk.Label(msg) | ||
20 | label.show() | ||
21 | window.add(label) | ||
22 | |||
23 | glib.timeout_add_seconds(10, all_done_cb) | ||
24 | |||
25 | if __name__ == "__main__": | ||
26 | dialogue_ui() | ||
27 | gtk.main() | ||
28 | |||