summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2012-03-26 14:32:12 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-28 16:49:18 +0100
commit9df6a793cbeaa4b658afa3873e61e41e25f569fa (patch)
tree898aa25329429e39d111fc9c821d0823a38f093d /bitbake
parent58c19812050963cc221ec1133eae42cac7cb0433 (diff)
downloadpoky-9df6a793cbeaa4b658afa3873e61e41e25f569fa.tar.gz
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>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py20
1 files changed, 14 insertions, 6 deletions
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):
88 self.pack_start(self.group_align, expand=True, fill=True) 88 self.pack_start(self.group_align, expand=True, fill=True)
89 89
90 self.box_group_area.pack_start(self.gtable, expand=True, fill=True) 90 self.box_group_area.pack_start(self.gtable, expand=True, fill=True)
91 if pack_config_build_button == True: 91 if pack_config_build_button:
92 self.box_group_area.pack_end(self.config_build_button, expand=False, fill=False) 92 self.box_group_area.pack_end(self.config_build_button, expand=False, fill=False)
93 else:
94 box = gtk.HBox(False, 6)
95 box.show()
96 subbox = gtk.HBox(False, 0)
97 subbox.set_size_request(205, 49)
98 subbox.show()
99 box.add(subbox)
100 self.box_group_area.pack_end(box, False, False)
93 101
94 def show_machine(self): 102 def show_machine(self):
95 self.progress_bar.reset() 103 self.progress_bar.reset()
@@ -209,14 +217,14 @@ class ImageConfigurationPage (HobPage):
209 217
210 def set_config_baseimg_layout(self): 218 def set_config_baseimg_layout(self):
211 self.gtable.attach(self.image_title, 0, 40, 13, 17) 219 self.gtable.attach(self.image_title, 0, 40, 13, 17)
212 self.gtable.attach(self.image_title_desc, 0, 40, 17, 22) 220 self.gtable.attach(self.image_title_desc, 0, 40, 18, 23)
213 self.gtable.attach(self.image_combo, 0, 12, 22, 25) 221 self.gtable.attach(self.image_combo, 0, 12, 24, 27)
214 self.gtable.attach(self.image_desc, 14, 38, 22, 27) 222 self.gtable.attach(self.image_desc, 14, 38, 24, 29)
215 self.gtable.attach(self.image_separator, 0, 40, 35, 36) 223 self.gtable.attach(self.image_separator, 0, 40, 35, 36)
216 224
217 def set_rcppkg_layout(self): 225 def set_rcppkg_layout(self):
218 self.gtable.attach(self.view_recipes_button, 0, 20, 27, 32) 226 self.gtable.attach(self.view_recipes_button, 0, 20, 30, 35)
219 self.gtable.attach(self.view_packages_button, 20, 40, 27, 32) 227 self.gtable.attach(self.view_packages_button, 20, 40, 30, 35)
220 228
221 def create_config_build_button(self): 229 def create_config_build_button(self):
222 # Create the "Build packages" and "Just bake" buttons at the bottom 230 # Create the "Build packages" and "Just bake" buttons at the bottom