summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2012-03-21 18:42:35 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-22 14:40:41 +0000
commit21970f475590e9ce81412c02c467c74e5d109ddc (patch)
treedc15a5b356f46a1cb1cb2f783958c6ae907ae1c1 /bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
parent457ec75e390e7ee1193a9b62a463b28db5730845 (diff)
downloadpoky-21970f475590e9ce81412c02c467c74e5d109ddc.tar.gz
lib/bb/ui/crumbs: Add HobAltButton and use it
This adds a gtk.Button subclass for secondary actions which unsets the relief so that the user is aware that the button is clickable and yet it is more subtle than the primary action (such that the primary action is the most obvious one) - this is per the interaction design. Further we replace all uses of gtk.LinkButton with the new HobAltButton Partially addresses [YOCTO #2105], a follow on patch will theme the button so that it matches the visual design. (From Poky rev: c3f17fed243180678264168968333463b203bfa0) (Bitbake rev: 601521c2d7f5568d94529a77b2cbe19fef7cbf48) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/recipeselectionpage.py')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/recipeselectionpage.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
index 2e5b7274a4..dcdea05432 100755
--- a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
@@ -23,7 +23,7 @@
23import gtk 23import gtk
24import glib 24import glib
25from bb.ui.crumbs.hobcolor import HobColors 25from bb.ui.crumbs.hobcolor import HobColors
26from bb.ui.crumbs.hobwidget import HobViewTable, HobNotebook 26from bb.ui.crumbs.hobwidget import HobViewTable, HobNotebook, HobAltButton
27from bb.ui.crumbs.hoblistmodel import RecipeListModel 27from bb.ui.crumbs.hoblistmodel import RecipeListModel
28from bb.ui.crumbs.hobpages import HobPage 28from bb.ui.crumbs.hobpages import HobPage
29 29
@@ -166,7 +166,7 @@ class RecipeSelectionPage (HobPage):
166 self.build_packages_button.connect("clicked", self.build_packages_clicked_cb) 166 self.build_packages_button.connect("clicked", self.build_packages_clicked_cb)
167 button_box.pack_end(self.build_packages_button, expand=False, fill=False) 167 button_box.pack_end(self.build_packages_button, expand=False, fill=False)
168 168
169 self.back_button = gtk.LinkButton("Go back to Image Configuration screen", "<< Back to image configuration") 169 self.back_button = HobAltButton("Back to image configuration")
170 self.back_button.connect("clicked", self.back_button_clicked_cb) 170 self.back_button.connect("clicked", self.back_button_clicked_cb)
171 button_box.pack_start(self.back_button, expand=False, fill=False) 171 button_box.pack_start(self.back_button, expand=False, fill=False)
172 172