From 0e1a427a2558ca09bc71b4d549c468198af7e01c Mon Sep 17 00:00:00 2001 From: Ioana Grigoropol Date: Wed, 26 Sep 2012 15:13:42 +0300 Subject: bitbake: hob: Buttons width and height are taken for host - removed all set_size_request calls for buttons in order to: - force autosizing of buttons with regard to the text length - use host theme default height for buttons - modified buttons on image details page to have the same height (default host one) and the width of the button with the largest text - modified Stop button on build details page to have the default height by directly attaching it to the containing table instead of hbox (Bitbake rev: 9cdfaa17309d368c3bbae0f1cce0ad875d340e83) Signed-off-by: Ioana Grigoropol Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (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 cf7af2b741..e1c7a6719c 100644 --- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py +++ b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py @@ -167,13 +167,12 @@ class ImageConfigurationPage (HobPage): markup += "dev-manual.html#understanding-and-using-layers\">reference manual." self.layer_info_icon = HobInfoButton(markup, self.get_parent()) - self.progress_box = gtk.HBox(False, 6) +# self.progress_box = gtk.HBox(False, 6) self.progress_bar = HobProgressBar() - self.progress_box.pack_start(self.progress_bar, expand=True, fill=True) +# self.progress_box.pack_start(self.progress_bar, expand=True, fill=True) self.stop_button = HobAltButton("Stop") self.stop_button.connect("clicked", self.stop_button_clicked_cb) - self.progress_box.pack_end(self.stop_button, expand=False, fill=False) - +# self.progress_box.pack_end(stop_button, expand=False, fill=False) self.machine_separator = gtk.HSeparator() def set_config_machine_layout(self, show_progress_bar = False): @@ -183,7 +182,9 @@ class ImageConfigurationPage (HobPage): self.gtable.attach(self.layer_button, 14, 36, 7, 12) self.gtable.attach(self.layer_info_icon, 36, 40, 7, 11) if show_progress_bar: - self.gtable.attach(self.progress_box, 0, 40, 15, 19) + #self.gtable.attach(self.progress_box, 0, 40, 15, 18) + self.gtable.attach(self.progress_bar, 0, 37, 15, 18) + self.gtable.attach(self.stop_button, 37, 40, 15, 18, 0, 0) self.gtable.attach(self.machine_separator, 0, 40, 13, 14) def create_config_baseimg(self): @@ -232,14 +233,14 @@ class ImageConfigurationPage (HobPage): # create button "Build image" self.just_bake_button = HobButton("Build image") - self.just_bake_button.set_size_request(205, 49) + #self.just_bake_button.set_size_request(205, 49) self.just_bake_button.set_tooltip_text("Build target image") self.just_bake_button.connect("clicked", self.just_bake_button_clicked_cb) button_box.pack_end(self.just_bake_button, expand=False, fill=False) # create button "Edit Image" self.edit_image_button = HobAltButton("Edit image") - self.edit_image_button.set_size_request(205, 49) + #self.edit_image_button.set_size_request(205, 49) self.edit_image_button.set_tooltip_text("Edit target image") self.edit_image_button.connect("clicked", self.edit_image_button_clicked_cb) button_box.pack_end(self.edit_image_button, expand=False, fill=False) -- cgit v1.2.3-54-g00ecf