summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/imagedetailspage.py19
1 files changed, 8 insertions, 11 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
index 9d57dc05c8..deb053c4c9 100755
--- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
+++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
@@ -431,23 +431,20 @@ class ImageDetailsPage (HobPage):
431 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)
432 create = True 432 create = True
433 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
443 name = "Build new image" 434 name = "Build new image"
444 if name in buttonlist: 435 if name in buttonlist:
445 # create button "Build new image" 436 # create button "Build new image"
446 build_new_button = HobAltButton("Build new image") 437 if packed:
438 build_new_button = HobAltButton("Build new image")
439 self.details_bottom_buttons.pack_start(build_new_button, expand=False, fill=False)
440 else:
441 build_new_button = HobButton("Build new image")
442 build_new_button.set_size_request(205, 49)
443 build_new_button.set_flags(gtk.CAN_DEFAULT)
444 self.details_bottom_buttons.pack_end(build_new_button, expand=False, fill=False)
447 build_new_button.set_tooltip_text("Create a new image from scratch") 445 build_new_button.set_tooltip_text("Create a new image from scratch")
448 button_id = build_new_button.connect("clicked", self.build_new_button_clicked_cb) 446 button_id = build_new_button.connect("clicked", self.build_new_button_clicked_cb)
449 self.button_ids[button_id] = build_new_button 447 self.button_ids[button_id] = build_new_button
450 self.details_bottom_buttons.pack_start(build_new_button, expand=False, fill=False)
451 448
452 def get_kernel_file_name(self, image_name): 449 def get_kernel_file_name(self, image_name):
453 name_list = [] 450 name_list = []