diff options
| author | Ioana Grigoropol <ioanax.grigoropol@intel.com> | 2012-09-26 15:13:42 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-27 16:45:25 +0100 |
| commit | 0e1a427a2558ca09bc71b4d549c468198af7e01c (patch) | |
| tree | 12d52b353424b3c293f2e2e5a340db123ecdcb7c /bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | |
| parent | 4c229615eaedb6b7af6efa7d4d70848a8027594a (diff) | |
| download | poky-0e1a427a2558ca09bc71b4d549c468198af7e01c.tar.gz | |
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 <ioanax.grigoropol@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py')
| -rw-r--r-- | bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | 15 |
1 files changed, 8 insertions, 7 deletions
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): | |||
| 167 | markup += "dev-manual.html#understanding-and-using-layers\">reference manual</a>." | 167 | markup += "dev-manual.html#understanding-and-using-layers\">reference manual</a>." |
| 168 | self.layer_info_icon = HobInfoButton(markup, self.get_parent()) | 168 | self.layer_info_icon = HobInfoButton(markup, self.get_parent()) |
| 169 | 169 | ||
| 170 | self.progress_box = gtk.HBox(False, 6) | 170 | # self.progress_box = gtk.HBox(False, 6) |
| 171 | self.progress_bar = HobProgressBar() | 171 | self.progress_bar = HobProgressBar() |
| 172 | self.progress_box.pack_start(self.progress_bar, expand=True, fill=True) | 172 | # self.progress_box.pack_start(self.progress_bar, expand=True, fill=True) |
| 173 | self.stop_button = HobAltButton("Stop") | 173 | self.stop_button = HobAltButton("Stop") |
| 174 | self.stop_button.connect("clicked", self.stop_button_clicked_cb) | 174 | self.stop_button.connect("clicked", self.stop_button_clicked_cb) |
| 175 | self.progress_box.pack_end(self.stop_button, expand=False, fill=False) | 175 | # self.progress_box.pack_end(stop_button, expand=False, fill=False) |
| 176 | |||
| 177 | self.machine_separator = gtk.HSeparator() | 176 | self.machine_separator = gtk.HSeparator() |
| 178 | 177 | ||
| 179 | def set_config_machine_layout(self, show_progress_bar = False): | 178 | def set_config_machine_layout(self, show_progress_bar = False): |
| @@ -183,7 +182,9 @@ class ImageConfigurationPage (HobPage): | |||
| 183 | self.gtable.attach(self.layer_button, 14, 36, 7, 12) | 182 | self.gtable.attach(self.layer_button, 14, 36, 7, 12) |
| 184 | self.gtable.attach(self.layer_info_icon, 36, 40, 7, 11) | 183 | self.gtable.attach(self.layer_info_icon, 36, 40, 7, 11) |
| 185 | if show_progress_bar: | 184 | if show_progress_bar: |
| 186 | self.gtable.attach(self.progress_box, 0, 40, 15, 19) | 185 | #self.gtable.attach(self.progress_box, 0, 40, 15, 18) |
| 186 | self.gtable.attach(self.progress_bar, 0, 37, 15, 18) | ||
| 187 | self.gtable.attach(self.stop_button, 37, 40, 15, 18, 0, 0) | ||
| 187 | self.gtable.attach(self.machine_separator, 0, 40, 13, 14) | 188 | self.gtable.attach(self.machine_separator, 0, 40, 13, 14) |
| 188 | 189 | ||
| 189 | def create_config_baseimg(self): | 190 | def create_config_baseimg(self): |
| @@ -232,14 +233,14 @@ class ImageConfigurationPage (HobPage): | |||
| 232 | 233 | ||
| 233 | # create button "Build image" | 234 | # create button "Build image" |
| 234 | self.just_bake_button = HobButton("Build image") | 235 | self.just_bake_button = HobButton("Build image") |
| 235 | self.just_bake_button.set_size_request(205, 49) | 236 | #self.just_bake_button.set_size_request(205, 49) |
| 236 | self.just_bake_button.set_tooltip_text("Build target image") | 237 | self.just_bake_button.set_tooltip_text("Build target image") |
| 237 | self.just_bake_button.connect("clicked", self.just_bake_button_clicked_cb) | 238 | self.just_bake_button.connect("clicked", self.just_bake_button_clicked_cb) |
| 238 | button_box.pack_end(self.just_bake_button, expand=False, fill=False) | 239 | button_box.pack_end(self.just_bake_button, expand=False, fill=False) |
| 239 | 240 | ||
| 240 | # create button "Edit Image" | 241 | # create button "Edit Image" |
| 241 | self.edit_image_button = HobAltButton("Edit image") | 242 | self.edit_image_button = HobAltButton("Edit image") |
| 242 | self.edit_image_button.set_size_request(205, 49) | 243 | #self.edit_image_button.set_size_request(205, 49) |
| 243 | self.edit_image_button.set_tooltip_text("Edit target image") | 244 | self.edit_image_button.set_tooltip_text("Edit target image") |
| 244 | self.edit_image_button.connect("clicked", self.edit_image_button_clicked_cb) | 245 | self.edit_image_button.connect("clicked", self.edit_image_button_clicked_cb) |
| 245 | button_box.pack_end(self.edit_image_button, expand=False, fill=False) | 246 | button_box.pack_end(self.edit_image_button, expand=False, fill=False) |
