From 9df6a793cbeaa4b658afa3873e61e41e25f569fa Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Mon, 26 Mar 2012 14:32:12 -0700 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'bitbake') diff --git a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py index 8e0e9fce99..d7437a9925 100644 --- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py +++ b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py @@ -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 -- cgit v1.2.3-54-g00ecf