From c1cc10d013e41900743adbe5538583874cb0ac5f Mon Sep 17 00:00:00 2001 From: Dongxiao Xu Date: Tue, 13 Mar 2012 15:06:25 +0800 Subject: Hob: Show recipe/package editing button after base image is selected Only show recipe and package editing button after base image is selected. (Bitbake rev: 5290d99f4d0f36076c59ec0b59e3f69b04d69ebf) Signed-off-by: Dongxiao Xu Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py') diff --git a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py index 3b1201e908..f386281947 100644 --- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py +++ b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py @@ -108,10 +108,18 @@ class ImageConfigurationPage (HobPage): self.show_all() def show_info_populated(self): + self.progress_bar.reset() + self._pack_components(pack_config_build_button = False) + self.set_config_machine_layout(show_progress_bar = False) + self.set_config_baseimg_layout() + self.show_all() + + def show_baseimg_selected(self): self.progress_bar.reset() self._pack_components(pack_config_build_button = True) self.set_config_machine_layout(show_progress_bar = False) self.set_config_baseimg_layout() + self.set_rcppkg_layout() self.show_all() def create_config_machine(self): @@ -196,9 +204,11 @@ class ImageConfigurationPage (HobPage): 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_separator, 0, 40, 35, 36) + + def set_rcppkg_layout(self): self.gtable.attach(self.view_recipes_button, 0, 20, 28, 32) self.gtable.attach(self.view_packages_button, 20, 40, 28, 32) - self.gtable.attach(self.image_separator, 0, 40, 35, 36) def create_config_build_button(self): # Create the "Build packages" and "Just bake" buttons at the bottom @@ -280,6 +290,8 @@ class ImageConfigurationPage (HobPage): self.builder.recipe_model.reset() self.builder.package_model.reset() + self.show_baseimg_selected() + glib.idle_add(self.image_combo_changed_idle_cb, selected_image, selected_recipes, selected_packages) def _image_combo_connect_signal(self): -- cgit v1.2.3-54-g00ecf