summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/builddetailspage.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/builddetailspage.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/builddetailspage.py')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/builddetailspage.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builddetailspage.py b/bitbake/lib/bb/ui/crumbs/builddetailspage.py
index 7a5cfe67ff..3605ee1a6b 100755
--- a/bitbake/lib/bb/ui/crumbs/builddetailspage.py
+++ b/bitbake/lib/bb/ui/crumbs/builddetailspage.py
@@ -22,7 +22,7 @@
22 22
23import gtk 23import gtk
24from bb.ui.crumbs.progressbar import HobProgressBar 24from bb.ui.crumbs.progressbar import HobProgressBar
25from bb.ui.crumbs.hobwidget import hic, HobNotebook 25from bb.ui.crumbs.hobwidget import hic, HobNotebook, HobAltButton
26from bb.ui.crumbs.runningbuild import RunningBuildTreeView 26from bb.ui.crumbs.runningbuild import RunningBuildTreeView
27from bb.ui.crumbs.runningbuild import BuildConfigurationTreeView 27from bb.ui.crumbs.runningbuild import BuildConfigurationTreeView
28from bb.ui.crumbs.runningbuild import BuildFailureTreeView 28from bb.ui.crumbs.runningbuild import BuildFailureTreeView
@@ -49,7 +49,7 @@ class BuildDetailsPage (HobPage):
49 self.progress_box = gtk.HBox(False, 6) 49 self.progress_box = gtk.HBox(False, 6)
50 self.progress_bar = HobProgressBar() 50 self.progress_bar = HobProgressBar()
51 self.progress_box.pack_start(self.progress_bar, expand=True, fill=True) 51 self.progress_box.pack_start(self.progress_bar, expand=True, fill=True)
52 self.stop_button = gtk.LinkButton("Stop the build process", "Stop") 52 self.stop_button = HobAltButton("Stop")
53 self.stop_button.connect("clicked", self.stop_button_clicked_cb) 53 self.stop_button.connect("clicked", self.stop_button_clicked_cb)
54 self.progress_box.pack_end(self.stop_button, expand=False, fill=False) 54 self.progress_box.pack_end(self.stop_button, expand=False, fill=False)
55 55
@@ -78,7 +78,7 @@ class BuildDetailsPage (HobPage):
78 self.notebook.append_page(self.scrolled_view_build, gtk.Label("Log")) 78 self.notebook.append_page(self.scrolled_view_build, gtk.Label("Log"))
79 79
80 self.button_box = gtk.HBox(False, 6) 80 self.button_box = gtk.HBox(False, 6)
81 self.back_button = gtk.LinkButton("Go back to Image Configuration screen", "<< Back to image configuration") 81 self.back_button = HobAltButton("Back to image configuration")
82 self.back_button.connect("clicked", self.back_button_clicked_cb) 82 self.back_button.connect("clicked", self.back_button_clicked_cb)
83 self.button_box.pack_start(self.back_button, expand=False, fill=False) 83 self.button_box.pack_start(self.back_button, expand=False, fill=False)
84 84