Patchwork [bitbake-devel,4/6] lib/bb/ui/crumbs/builder: allow user to cancel Layer selection dialogue

login
register
mail settings
Submitter Joshua Lock
Date March 29, 2012, 12:30 a.m.
Message ID <3dc528dd4602c388b70bdf96548feb2bc60f19d0.1332980606.git.josh@linux.intel.com>
Download mbox | patch
Permalink /patch/24781/
State Accepted
Commit a2d1c035a5dd3d112a887e4386dfaf9b0c37c104
Headers show

Comments

Joshua Lock - March 29, 2012, 12:30 a.m.
Because layer changes may take some time allow the user to cancel out of
the dialogue and prevent Hob from applying any of the changes made.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
---
 lib/bb/ui/crumbs/builder.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Patch

diff --git a/lib/bb/ui/crumbs/builder.py b/lib/bb/ui/crumbs/builder.py
index 2af14dc..1d203fe 100755
--- a/lib/bb/ui/crumbs/builder.py
+++ b/lib/bb/ui/crumbs/builder.py
@@ -734,7 +734,9 @@  class Builder(gtk.Window):
                      flags = gtk.DIALOG_MODAL
                          | gtk.DIALOG_DESTROY_WITH_PARENT
                          | gtk.DIALOG_NO_SEPARATOR)
-        button = dialog.add_button("Close", gtk.RESPONSE_YES)
+        button = dialog.add_button("Cancel", gtk.RESPONSE_NO)
+        HobAltButton.style_button(button)
+        button = dialog.add_button("OK", gtk.RESPONSE_YES)
         HobButton.style_button(button)
         response = dialog.run()
         if response == gtk.RESPONSE_YES: