summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.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/imageconfigurationpage.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/imageconfigurationpage.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
index c1372ad2dd..6f01f050d5 100644
--- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
+++ b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
@@ -24,7 +24,7 @@ import gtk
24import glib 24import glib
25from bb.ui.crumbs.progressbar import HobProgressBar 25from bb.ui.crumbs.progressbar import HobProgressBar
26from bb.ui.crumbs.hobcolor import HobColors 26from bb.ui.crumbs.hobcolor import HobColors
27from bb.ui.crumbs.hobwidget import hic, HobXpmLabelButtonBox, HobInfoButton 27from bb.ui.crumbs.hobwidget import hic, HobXpmLabelButtonBox, HobInfoButton, HobAltButton
28from bb.ui.crumbs.hoblistmodel import RecipeListModel 28from bb.ui.crumbs.hoblistmodel import RecipeListModel
29from bb.ui.crumbs.hobpages import HobPage 29from bb.ui.crumbs.hobpages import HobPage
30 30
@@ -153,7 +153,7 @@ class ImageConfigurationPage (HobPage):
153 self.progress_box = gtk.HBox(False, 6) 153 self.progress_box = gtk.HBox(False, 6)
154 self.progress_bar = HobProgressBar() 154 self.progress_bar = HobProgressBar()
155 self.progress_box.pack_start(self.progress_bar, expand=True, fill=True) 155 self.progress_box.pack_start(self.progress_bar, expand=True, fill=True)
156 self.stop_button = gtk.LinkButton("Stop the parsing process", "Stop") 156 self.stop_button = HobAltButton("Stop")
157 self.stop_button.connect("clicked", self.stop_button_clicked_cb) 157 self.stop_button.connect("clicked", self.stop_button_clicked_cb)
158 self.progress_box.pack_end(self.stop_button, expand=False, fill=False) 158 self.progress_box.pack_end(self.stop_button, expand=False, fill=False)
159 159
@@ -241,8 +241,7 @@ class ImageConfigurationPage (HobPage):
241 button_box.pack_end(label, expand=False, fill=False) 241 button_box.pack_end(label, expand=False, fill=False)
242 242
243 # create button "Build Packages" 243 # create button "Build Packages"
244 build_packages_button = gtk.LinkButton("Build packages first based on recipe selection " 244 build_packages_button = HobAltButton("Build Packages")
245 "for late customization on packages for the target image", "Build Packages")
246 build_packages_button.connect("clicked", self.build_packages_button_clicked_cb) 245 build_packages_button.connect("clicked", self.build_packages_button_clicked_cb)
247 button_box.pack_end(build_packages_button, expand=False, fill=False) 246 button_box.pack_end(build_packages_button, expand=False, fill=False)
248 247
@@ -344,14 +343,14 @@ class ImageConfigurationPage (HobPage):
344 self.image_combo.set_active(-1) 343 self.image_combo.set_active(-1)
345 self.image_combo.set_active(active) 344 self.image_combo.set_active(active)
346 345
347 def layer_button_clicked_cb(self, event, data): 346 def layer_button_clicked_cb(self, button):
348 # Create a layer selection dialog 347 # Create a layer selection dialog
349 self.builder.show_layer_selection_dialog() 348 self.builder.show_layer_selection_dialog()
350 349
351 def view_recipes_button_clicked_cb(self, event, data): 350 def view_recipes_button_clicked_cb(self, button):
352 self.builder.show_recipes() 351 self.builder.show_recipes()
353 352
354 def view_packages_button_clicked_cb(self, event, data): 353 def view_packages_button_clicked_cb(self, button):
355 self.builder.show_packages() 354 self.builder.show_packages()
356 355
357 def just_bake_button_clicked_cb(self, button): 356 def just_bake_button_clicked_cb(self, button):