summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/builddetailspage.py
diff options
context:
space:
mode:
authorIoana Grigoropol <ioanax.grigoropol@intel.com>2012-09-26 15:13:42 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-27 16:45:25 +0100
commit0e1a427a2558ca09bc71b4d549c468198af7e01c (patch)
tree12d52b353424b3c293f2e2e5a340db123ecdcb7c /bitbake/lib/bb/ui/crumbs/builddetailspage.py
parent4c229615eaedb6b7af6efa7d4d70848a8027594a (diff)
downloadpoky-0e1a427a2558ca09bc71b4d549c468198af7e01c.tar.gz
bitbake: hob: Buttons width and height are taken for host
- removed all set_size_request calls for buttons in order to: - force autosizing of buttons with regard to the text length - use host theme default height for buttons - modified buttons on image details page to have the same height (default host one) and the width of the button with the largest text - modified Stop button on build details page to have the default height by directly attaching it to the containing table instead of hbox (Bitbake rev: 9cdfaa17309d368c3bbae0f1cce0ad875d340e83) Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@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.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builddetailspage.py b/bitbake/lib/bb/ui/crumbs/builddetailspage.py
index 824dfedc59..55a851feeb 100755
--- a/bitbake/lib/bb/ui/crumbs/builddetailspage.py
+++ b/bitbake/lib/bb/ui/crumbs/builddetailspage.py
@@ -206,7 +206,7 @@ class BuildDetailsPage (HobPage):
206 206
207 color = HobColors.ERROR 207 color = HobColors.ERROR
208 build_fail_top = gtk.EventBox() 208 build_fail_top = gtk.EventBox()
209 build_fail_top.set_size_request(-1, 200) 209 #build_fail_top.set_size_request(-1, 200)
210 build_fail_top.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse(color)) 210 build_fail_top.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse(color))
211 211
212 build_fail_tab = gtk.Table(14, 46, True) 212 build_fail_tab = gtk.Table(14, 46, True)
@@ -229,7 +229,7 @@ class BuildDetailsPage (HobPage):
229 229
230 # create button 'Edit packages' 230 # create button 'Edit packages'
231 action_button = HobButton(primary_action) 231 action_button = HobButton(primary_action)
232 action_button.set_size_request(-1, 40) 232 #action_button.set_size_request(-1, 40)
233 action_button.set_tooltip_text("Edit the %s parameters" % actions) 233 action_button.set_tooltip_text("Edit the %s parameters" % actions)
234 action_button.connect('clicked', self.failure_primary_action_button_clicked_cb, primary_action) 234 action_button.connect('clicked', self.failure_primary_action_button_clicked_cb, primary_action)
235 build_fail_tab.attach(action_button, 4, 13, 9, 12) 235 build_fail_tab.attach(action_button, 4, 13, 9, 12)
@@ -269,7 +269,7 @@ class BuildDetailsPage (HobPage):
269 def add_build_stop_top_bar(self, action, log_file=None): 269 def add_build_stop_top_bar(self, action, log_file=None):
270 color = HobColors.LIGHT_GRAY 270 color = HobColors.LIGHT_GRAY
271 build_stop_top = gtk.EventBox() 271 build_stop_top = gtk.EventBox()
272 build_stop_top.set_size_request(-1, 200) 272 #build_stop_top.set_size_request(-1, 200)
273 build_stop_top.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse(color)) 273 build_stop_top.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse(color))
274 build_stop_top.set_flags(gtk.CAN_DEFAULT) 274 build_stop_top.set_flags(gtk.CAN_DEFAULT)
275 build_stop_top.grab_default() 275 build_stop_top.grab_default()
@@ -307,7 +307,7 @@ class BuildDetailsPage (HobPage):
307 307
308 attach_pos = (24 if log_file else 14) 308 attach_pos = (24 if log_file else 14)
309 build_button = HobAltButton("Build new image") 309 build_button = HobAltButton("Build new image")
310 build_button.set_size_request(-1, 40) 310 #build_button.set_size_request(-1, 40)
311 build_button.set_tooltip_text("Create a new image from scratch") 311 build_button.set_tooltip_text("Create a new image from scratch")
312 build_button.connect('clicked', self.new_image_button_clicked_cb) 312 build_button.connect('clicked', self.new_image_button_clicked_cb)
313 build_stop_tab.attach(build_button, attach_pos, attach_pos + 9, 6, 9) 313 build_stop_tab.attach(build_button, attach_pos, attach_pos + 9, 6, 9)