summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2012-03-22 16:06:42 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-23 16:10:24 +0000
commitac53520823c37df557bffb738dfd74fe08c495be (patch)
tree4e8483825c0031fdc4477b40dd3a47e80caf63d9 /bitbake/lib/bb/ui/crumbs/imagedetailspage.py
parent78fb40958a1b4ea88756f6d966c0ddfd3a543e6e (diff)
downloadpoky-ac53520823c37df557bffb738dfd74fe08c495be.tar.gz
lib/bb/ui/crumbs: make use of HobButton for existing primary action buttons
Replace all gtk.Button instances that have the orange style applied with HobButton. (Bitbake rev: f4dfdc23a6498fdaa164a1bfccf616ff8fcbd251) 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.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
index 9213255265..07a6eb0b52 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, HobAltButton 26from bb.ui.crumbs.hobwidget import hic, HobViewTable, HobAltButton, HobButton
27from bb.ui.crumbs.hobpages import HobPage 27from bb.ui.crumbs.hobpages import HobPage
28 28
29# 29#
@@ -264,15 +264,8 @@ class ImageDetailsPage (HobPage):
264 # create button "Deploy image" 264 # create button "Deploy image"
265 name = "Deploy image" 265 name = "Deploy image"
266 if name in buttonlist: 266 if name in buttonlist:
267 deploy_button = gtk.Button() 267 deploy_button = HobButton('Deploy image')
268 label = gtk.Label()
269 mark = "<span %s>Deploy image</span>" % self.span_tag('24px', 'bold')
270 label.set_markup(mark)
271 deploy_button.set_image(label)
272 deploy_button.set_size_request(205, 49) 268 deploy_button.set_size_request(205, 49)
273 deploy_button.modify_bg(gtk.STATE_NORMAL, gtk.gdk.Color(HobColors.ORANGE))
274 deploy_button.modify_bg(gtk.STATE_PRELIGHT, gtk.gdk.Color(HobColors.ORANGE))
275 deploy_button.modify_bg(gtk.STATE_SELECTED, gtk.gdk.Color(HobColors.ORANGE))
276 deploy_button.set_tooltip_text("Deploy image to get your target board") 269 deploy_button.set_tooltip_text("Deploy image to get your target board")
277 deploy_button.set_flags(gtk.CAN_DEFAULT) 270 deploy_button.set_flags(gtk.CAN_DEFAULT)
278 deploy_button.grab_default() 271 deploy_button.grab_default()