From patchwork Thu May 24 11:07:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel, 1/1] Hob:fixed the issue of primary button is not an 'orange hob button' Date: Thu, 24 May 2012 11:07:10 -0000 From: An, LimingX L X-Patchwork-Id: 28603 Message-Id: To: bitbake-devel@lists.openembedded.org 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] Signed-off-by: Liming An --- bitbake/lib/bb/ui/crumbs/imagedetailspage.py | 27 +++++++++++++++---------- meta/conf/machine/include/qemu.inc | 2 +- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py index 5d85491..9d57dc0 100755 --- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py +++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py @@ -411,15 +411,6 @@ class ImageDetailsPage (HobPage): self.details_bottom_buttons.pack_end(run_button, expand=False, fill=False) created = True - if not packed: - box = gtk.HBox(False, 6) - box.show() - subbox = gtk.HBox(False, 0) - subbox.set_size_request(205, 49) - subbox.show() - box.add(subbox) - self.details_bottom_buttons.pack_end(box, False, False) - name = "Save as template" if name in buttonlist: if created == True: @@ -427,14 +418,28 @@ class ImageDetailsPage (HobPage): label = gtk.Label(" or ") self.details_bottom_buttons.pack_end(label, expand=False, fill=False) - # create button "Save as template" - save_button = HobAltButton("Save as template") + # create button "Save as template" + save_button = HobAltButton("Save as template") + else: + save_button = HobButton("Save as template") + save_button.set_size_request(205, 49) + save_button.set_flags(gtk.CAN_DEFAULT) + packed = True save_button.set_tooltip_text("Save the image configuration for reuse") button_id = save_button.connect("clicked", self.save_button_clicked_cb) self.button_ids[button_id] = save_button self.details_bottom_buttons.pack_end(save_button, expand=False, fill=False) create = True + if not packed: + box = gtk.HBox(False, 6) + box.show() + subbox = gtk.HBox(False, 0) + subbox.set_size_request(205, 49) + subbox.show() + box.add(subbox) + self.details_bottom_buttons.pack_end(box, False, False) + name = "Build new image" if name in buttonlist: # create button "Build new image" diff --git a/meta/conf/machine/include/qemu.inc b/meta/conf/machine/include/qemu.inc index 5d59a7f..dc7f839 100644 --- a/meta/conf/machine/include/qemu.inc +++ b/meta/conf/machine/include/qemu.inc @@ -10,7 +10,7 @@ XSERVER ?= "xserver-xorg \ MACHINE_FEATURES = "apm alsa pcmcia bluetooth irda usbgadget screen" -IMAGE_FSTYPES += "tar.bz2 ext3" +IMAGE_FSTYPES += "tar.bz2" ROOT_FLASH_SIZE = "280"