summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiming An <limingx.l.an@intel.com>2012-05-24 19:07:10 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-25 11:15:11 +0100
commitf3a5ad170d73560b9515a5d55d10baa389a8e7bb (patch)
treeea737eed3f49bcea8a8d28f59983490443844d44
parent994ce7b0713b0eb193c16c955f3cf1688f01b479 (diff)
downloadpoky-f3a5ad170d73560b9515a5d55d10baa389a8e7bb.tar.gz
Hob:fixed the issue of primary button is not an 'orange hob button'
In image detail page, the primary button should be an 'orange hob button', there has a primary button is not, so change it. [YOCTO #2326] (Bitbake rev: 884a0b2d927404991b7e23d5bbfab096a5b7e849) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/imagedetailspage.py27
1 files changed, 16 insertions, 11 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
index 5d8549170c..9d57dc05c8 100755
--- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
+++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
@@ -411,15 +411,6 @@ class ImageDetailsPage (HobPage):
411 self.details_bottom_buttons.pack_end(run_button, expand=False, fill=False) 411 self.details_bottom_buttons.pack_end(run_button, expand=False, fill=False)
412 created = True 412 created = True
413 413
414 if not packed:
415 box = gtk.HBox(False, 6)
416 box.show()
417 subbox = gtk.HBox(False, 0)
418 subbox.set_size_request(205, 49)
419 subbox.show()
420 box.add(subbox)
421 self.details_bottom_buttons.pack_end(box, False, False)
422
423 name = "Save as template" 414 name = "Save as template"
424 if name in buttonlist: 415 if name in buttonlist:
425 if created == True: 416 if created == True:
@@ -427,14 +418,28 @@ class ImageDetailsPage (HobPage):
427 label = gtk.Label(" or ") 418 label = gtk.Label(" or ")
428 self.details_bottom_buttons.pack_end(label, expand=False, fill=False) 419 self.details_bottom_buttons.pack_end(label, expand=False, fill=False)
429 420
430 # create button "Save as template" 421 # create button "Save as template"
431 save_button = HobAltButton("Save as template") 422 save_button = HobAltButton("Save as template")
423 else:
424 save_button = HobButton("Save as template")
425 save_button.set_size_request(205, 49)
426 save_button.set_flags(gtk.CAN_DEFAULT)
427 packed = True
432 save_button.set_tooltip_text("Save the image configuration for reuse") 428 save_button.set_tooltip_text("Save the image configuration for reuse")
433 button_id = save_button.connect("clicked", self.save_button_clicked_cb) 429 button_id = save_button.connect("clicked", self.save_button_clicked_cb)
434 self.button_ids[button_id] = save_button 430 self.button_ids[button_id] = save_button
435 self.details_bottom_buttons.pack_end(save_button, expand=False, fill=False) 431 self.details_bottom_buttons.pack_end(save_button, expand=False, fill=False)
436 create = True 432 create = True
437 433
434 if not packed:
435 box = gtk.HBox(False, 6)
436 box.show()
437 subbox = gtk.HBox(False, 0)
438 subbox.set_size_request(205, 49)
439 subbox.show()
440 box.add(subbox)
441 self.details_bottom_buttons.pack_end(box, False, False)
442
438 name = "Build new image" 443 name = "Build new image"
439 if name in buttonlist: 444 if name in buttonlist:
440 # create button "Build new image" 445 # create button "Build new image"