summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/packageselectionpage.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/packageselectionpage.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/packageselectionpage.py')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/packageselectionpage.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
index e2c76ccbf6..0a12cbf4da 100755
--- a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/packageselectionpage.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 PackageListModel 27from bb.ui.crumbs.hoblistmodel import PackageListModel
28from bb.ui.crumbs.hobpages import HobPage 28from bb.ui.crumbs.hobpages import HobPage
29 29
@@ -144,7 +144,7 @@ class PackageSelectionPage (HobPage):
144 self.build_image_button.connect("clicked", self.build_image_clicked_cb) 144 self.build_image_button.connect("clicked", self.build_image_clicked_cb)
145 button_box.pack_end(self.build_image_button, expand=False, fill=False) 145 button_box.pack_end(self.build_image_button, expand=False, fill=False)
146 146
147 self.back_button = gtk.LinkButton("Go back to Image Configuration screen", "<< Back to image configuration") 147 self.back_button = HobAltButton("Back to image configuration")
148 self.back_button.connect("clicked", self.back_button_clicked_cb) 148 self.back_button.connect("clicked", self.back_button_clicked_cb)
149 button_box.pack_start(self.back_button, expand=False, fill=False) 149 button_box.pack_start(self.back_button, expand=False, fill=False)
150 150