diff options
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/imagedetailspage.py')
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/imagedetailspage.py | 42 |
1 files changed, 1 insertions, 41 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py index 1b60aa8ed5..d5864136aa 100755 --- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py +++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py | |||
@@ -197,12 +197,6 @@ class ImageDetailsPage (HobPage): | |||
197 | self.toolbar.set_orientation(gtk.ORIENTATION_HORIZONTAL) | 197 | self.toolbar.set_orientation(gtk.ORIENTATION_HORIZONTAL) |
198 | self.toolbar.set_style(gtk.TOOLBAR_BOTH) | 198 | self.toolbar.set_style(gtk.TOOLBAR_BOTH) |
199 | 199 | ||
200 | template_button = self.append_toolbar_button(self.toolbar, | ||
201 | "Templates", | ||
202 | hic.ICON_TEMPLATES_DISPLAY_FILE, | ||
203 | hic.ICON_TEMPLATES_HOVER_FILE, | ||
204 | "Load a previously saved template", | ||
205 | self.template_button_clicked_cb) | ||
206 | my_images_button = self.append_toolbar_button(self.toolbar, | 200 | my_images_button = self.append_toolbar_button(self.toolbar, |
207 | "Images", | 201 | "Images", |
208 | hic.ICON_IMAGES_DISPLAY_FILE, | 202 | hic.ICON_IMAGES_DISPLAY_FILE, |
@@ -265,11 +259,7 @@ class ImageDetailsPage (HobPage): | |||
265 | self.build_result = self.BuildDetailBox(varlist=varlist, vallist=vallist, icon=icon, color=color) | 259 | self.build_result = self.BuildDetailBox(varlist=varlist, vallist=vallist, icon=icon, color=color) |
266 | self.box_group_area.pack_start(self.build_result, expand=False, fill=False) | 260 | self.box_group_area.pack_start(self.build_result, expand=False, fill=False) |
267 | 261 | ||
268 | # create the buttons at the bottom first because the buttons are used in apply_button_per_image() | 262 | self.buttonlist = ["Build new image", "Run image", "Deploy image"] |
269 | if self.build_succeeded: | ||
270 | self.buttonlist = ["Build new image", "Save as template", "Run image", "Deploy image"] | ||
271 | else: # get to this page from "My images" | ||
272 | self.buttonlist = ["Build new image", "Run image", "Deploy image"] | ||
273 | 263 | ||
274 | # Name | 264 | # Name |
275 | self.image_store = [] | 265 | self.image_store = [] |
@@ -582,26 +572,6 @@ class ImageDetailsPage (HobPage): | |||
582 | created = True | 572 | created = True |
583 | is_runnable = True | 573 | is_runnable = True |
584 | 574 | ||
585 | name = "Save as template" | ||
586 | if name in buttonlist: | ||
587 | if created == True: | ||
588 | # separator | ||
589 | #label = gtk.Label(" or ") | ||
590 | #self.details_bottom_buttons.pack_end(label, expand=False, fill=False) | ||
591 | |||
592 | # create button "Save as template" | ||
593 | save_button = HobAltButton("Save as template") | ||
594 | else: | ||
595 | save_button = HobButton("Save as template") | ||
596 | #save_button.set_size_request(205, 49) | ||
597 | save_button.set_flags(gtk.CAN_DEFAULT) | ||
598 | packed = True | ||
599 | save_button.set_tooltip_text("Save the image configuration for reuse") | ||
600 | button_id = save_button.connect("clicked", self.save_button_clicked_cb) | ||
601 | self.button_ids[button_id] = save_button | ||
602 | self.details_bottom_buttons.pack_end(save_button, expand=False, fill=False) | ||
603 | create = True | ||
604 | |||
605 | name = "Build new image" | 575 | name = "Build new image" |
606 | if name in buttonlist: | 576 | if name in buttonlist: |
607 | # create button "Build new image" | 577 | # create button "Build new image" |
@@ -618,9 +588,6 @@ class ImageDetailsPage (HobPage): | |||
618 | 588 | ||
619 | return is_runnable | 589 | return is_runnable |
620 | 590 | ||
621 | def save_button_clicked_cb(self, button): | ||
622 | self.builder.show_save_template_dialog() | ||
623 | |||
624 | def deploy_button_clicked_cb(self, button): | 591 | def deploy_button_clicked_cb(self, button): |
625 | if self.toggled_image: | 592 | if self.toggled_image: |
626 | if self.num_toggled > 1: | 593 | if self.num_toggled > 1: |
@@ -648,13 +615,6 @@ class ImageDetailsPage (HobPage): | |||
648 | def edit_packages_button_clicked_cb(self, button): | 615 | def edit_packages_button_clicked_cb(self, button): |
649 | self.builder.show_packages(ask=False) | 616 | self.builder.show_packages(ask=False) |
650 | 617 | ||
651 | def template_button_clicked_cb(self, button): | ||
652 | response, path = self.builder.show_load_template_dialog() | ||
653 | if not response: | ||
654 | return | ||
655 | if path: | ||
656 | self.builder.load_template(path) | ||
657 | |||
658 | def my_images_button_clicked_cb(self, button): | 618 | def my_images_button_clicked_cb(self, button): |
659 | self.builder.show_load_my_images_dialog() | 619 | self.builder.show_load_my_images_dialog() |
660 | 620 | ||