summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/imagedetailspage.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/imagedetailspage.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/imagedetailspage.py')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/imagedetailspage.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
index b7663d8443..9213255265 100755
--- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
+++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
@@ -23,7 +23,7 @@
23import gobject 23import gobject
24import gtk 24import gtk
25from bb.ui.crumbs.hobcolor import HobColors 25from bb.ui.crumbs.hobcolor import HobColors
26from bb.ui.crumbs.hobwidget import hic, HobViewTable 26from bb.ui.crumbs.hobwidget import hic, HobViewTable, HobAltButton
27from bb.ui.crumbs.hobpages import HobPage 27from bb.ui.crumbs.hobpages import HobPage
28 28
29# 29#
@@ -213,7 +213,7 @@ class ImageDetailsPage (HobPage):
213 vallist.append(layer) 213 vallist.append(layer)
214 i += 1 214 i += 1
215 215
216 edit_config_button = gtk.LinkButton("Changes settings for build", "Edit configuration") 216 edit_config_button = HobAltButton("Edit configuration")
217 edit_config_button.connect("clicked", self.edit_config_button_clicked_cb) 217 edit_config_button.connect("clicked", self.edit_config_button_clicked_cb)
218 setting_detail = self.DetailBox(varlist=varlist, vallist=vallist, button=edit_config_button) 218 setting_detail = self.DetailBox(varlist=varlist, vallist=vallist, button=edit_config_button)
219 self.box_group_area.pack_start(setting_detail, expand=False, fill=False) 219 self.box_group_area.pack_start(setting_detail, expand=False, fill=False)
@@ -224,7 +224,7 @@ class ImageDetailsPage (HobPage):
224 vallist.append(pkg_num) 224 vallist.append(pkg_num)
225 vallist.append(image_size) 225 vallist.append(image_size)
226 if build_succeeded: 226 if build_succeeded:
227 edit_packages_button = gtk.LinkButton("Change package selection for customization", "Edit packages") 227 edit_packages_button = HobAltButton("Edit packages")
228 edit_packages_button.connect("clicked", self.edit_packages_button_clicked_cb) 228 edit_packages_button.connect("clicked", self.edit_packages_button_clicked_cb)
229 else: # get to this page from "My images" 229 else: # get to this page from "My images"
230 edit_packages_button = None 230 edit_packages_button = None
@@ -288,7 +288,7 @@ class ImageDetailsPage (HobPage):
288 bottom_buttons.pack_end(label, expand=False, fill=False) 288 bottom_buttons.pack_end(label, expand=False, fill=False)
289 289
290 # create button "Run image" 290 # create button "Run image"
291 run_button = gtk.LinkButton("Launch and boot the image in the QEMU emulator", "Run image") 291 run_button = HobAltButton("Run image")
292 run_button.connect("clicked", self.run_button_clicked_cb) 292 run_button.connect("clicked", self.run_button_clicked_cb)
293 bottom_buttons.pack_end(run_button, expand=False, fill=False) 293 bottom_buttons.pack_end(run_button, expand=False, fill=False)
294 created = True 294 created = True
@@ -301,7 +301,7 @@ class ImageDetailsPage (HobPage):
301 bottom_buttons.pack_end(label, expand=False, fill=False) 301 bottom_buttons.pack_end(label, expand=False, fill=False)
302 302
303 # create button "Save as template" 303 # create button "Save as template"
304 save_button = gtk.LinkButton("Save the hob build template for future use", "Save as template") 304 save_button = HobAltButton("Save as template")
305 save_button.connect("clicked", self.save_button_clicked_cb) 305 save_button.connect("clicked", self.save_button_clicked_cb)
306 bottom_buttons.pack_end(save_button, expand=False, fill=False) 306 bottom_buttons.pack_end(save_button, expand=False, fill=False)
307 create = True 307 create = True
@@ -309,7 +309,7 @@ class ImageDetailsPage (HobPage):
309 name = "Build new image" 309 name = "Build new image"
310 if name in buttonlist: 310 if name in buttonlist:
311 # create button "Build new image" 311 # create button "Build new image"
312 build_new_button = gtk.LinkButton("Initiate another new build from the beginning", "Build new image") 312 build_new_button = HobAltButton("Build new image")
313 build_new_button.connect("clicked", self.build_new_button_clicked_cb) 313 build_new_button.connect("clicked", self.build_new_button_clicked_cb)
314 bottom_buttons.pack_start(build_new_button, expand=False, fill=False) 314 bottom_buttons.pack_start(build_new_button, expand=False, fill=False)
315 315