1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-09 17:39:31 +00:00

lib/bb/ui/crumbs/imageconfigurationpage: ensure widgets stay positioned

Tweak the table layout and insert some dummy widgets when the buttons
aren't drawn such that when the buttons do get drawn the existing widgets
don't all jump up.

(From Poky rev: 9edd833e7e36aea6a7350a36a5aad0ef300959c4)

(Bitbake rev: c09f71414d459eb926aa567d90a63407407d173e)

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Joshua Lock
2012-03-26 14:32:12 -07:00
committed by Richard Purdie
parent 58c1981205
commit 9df6a793cb
@@ -88,8 +88,16 @@ class ImageConfigurationPage (HobPage):
self.pack_start(self.group_align, expand=True, fill=True)
self.box_group_area.pack_start(self.gtable, expand=True, fill=True)
if pack_config_build_button == True:
if pack_config_build_button:
self.box_group_area.pack_end(self.config_build_button, expand=False, fill=False)
else:
box = gtk.HBox(False, 6)
box.show()
subbox = gtk.HBox(False, 0)
subbox.set_size_request(205, 49)
subbox.show()
box.add(subbox)
self.box_group_area.pack_end(box, False, False)
def show_machine(self):
self.progress_bar.reset()
@@ -209,14 +217,14 @@ class ImageConfigurationPage (HobPage):
def set_config_baseimg_layout(self):
self.gtable.attach(self.image_title, 0, 40, 13, 17)
self.gtable.attach(self.image_title_desc, 0, 40, 17, 22)
self.gtable.attach(self.image_combo, 0, 12, 22, 25)
self.gtable.attach(self.image_desc, 14, 38, 22, 27)
self.gtable.attach(self.image_title_desc, 0, 40, 18, 23)
self.gtable.attach(self.image_combo, 0, 12, 24, 27)
self.gtable.attach(self.image_desc, 14, 38, 24, 29)
self.gtable.attach(self.image_separator, 0, 40, 35, 36)
def set_rcppkg_layout(self):
self.gtable.attach(self.view_recipes_button, 0, 20, 27, 32)
self.gtable.attach(self.view_packages_button, 20, 40, 27, 32)
self.gtable.attach(self.view_recipes_button, 0, 20, 30, 35)
self.gtable.attach(self.view_packages_button, 20, 40, 30, 35)
def create_config_build_button(self):
# Create the "Build packages" and "Just bake" buttons at the bottom