diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2012-03-13 14:16:02 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-15 10:35:16 +0000 |
commit | 1dd648e9419501b911cd1d9a0d335ff3cfc8683a (patch) | |
tree | 5838f4834e64da28b46eb17cf9d18d08b854c6f0 /bitbake | |
parent | 206431274aa6241e138a7856ce542dcd7baba51c (diff) | |
download | poky-1dd648e9419501b911cd1d9a0d335ff3cfc8683a.tar.gz |
Hob: Remove the reset button in recipe/package selection page
(Bitbake rev: f576355686804631fd797e2a5d383a70f6fc42cd)
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/builder.py | 6 | ||||
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/packageselectionpage.py | 11 | ||||
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/recipeselectionpage.py | 9 |
3 files changed, 0 insertions, 26 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py index a905030aca..f9844dea31 100755 --- a/bitbake/lib/bb/ui/crumbs/builder.py +++ b/bitbake/lib/bb/ui/crumbs/builder.py | |||
@@ -361,12 +361,6 @@ class Builder(gtk.Window): | |||
361 | self.handler.set_extra_config(self.configuration.extra_setting) | 361 | self.handler.set_extra_config(self.configuration.extra_setting) |
362 | self.handler.set_extra_inherit("packageinfo") | 362 | self.handler.set_extra_inherit("packageinfo") |
363 | 363 | ||
364 | def reset_recipe_model(self): | ||
365 | self.recipe_model.reset() | ||
366 | |||
367 | def reset_package_model(self): | ||
368 | self.package_model.reset() | ||
369 | |||
370 | def update_recipe_model(self, selected_image, selected_recipes): | 364 | def update_recipe_model(self, selected_image, selected_recipes): |
371 | self.recipe_model.set_selected_image(selected_image) | 365 | self.recipe_model.set_selected_image(selected_image) |
372 | self.recipe_model.set_selected_recipes(selected_recipes) | 366 | self.recipe_model.set_selected_recipes(selected_recipes) |
diff --git a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py index a8628ac4aa..0427fe2f6d 100755 --- a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py +++ b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py | |||
@@ -118,12 +118,6 @@ class PackageSelectionPage (HobPage): | |||
118 | if self.pages[i]['name'] == "Included": | 118 | if self.pages[i]['name'] == "Included": |
119 | tab.connect("row-activated", self.tree_row_activated_cb) | 119 | tab.connect("row-activated", self.tree_row_activated_cb) |
120 | 120 | ||
121 | reset_button = gtk.Button("Reset") | ||
122 | reset_button.connect("clicked", self.reset_clicked_cb) | ||
123 | hbox = gtk.HBox(False, 5) | ||
124 | hbox.pack_end(reset_button, expand=False, fill=False) | ||
125 | tab.pack_start(hbox, expand=False, fill=False) | ||
126 | |||
127 | label = gtk.Label(self.pages[i]['name']) | 121 | label = gtk.Label(self.pages[i]['name']) |
128 | self.ins.append_page(tab, label) | 122 | self.ins.append_page(tab, label) |
129 | self.tables.append(tab) | 123 | self.tables.append(tab) |
@@ -206,11 +200,6 @@ class PackageSelectionPage (HobPage): | |||
206 | size_str = str(size) + ' KB' | 200 | size_str = str(size) + ' KB' |
207 | return size_str | 201 | return size_str |
208 | 202 | ||
209 | # Callback functions | ||
210 | def reset_clicked_cb(self, button): | ||
211 | self.package_model.reset() | ||
212 | self.builder.reset_package_model() | ||
213 | |||
214 | def toggle_item_idle_cb(self, path): | 203 | def toggle_item_idle_cb(self, path): |
215 | if not self.package_model.path_included(path): | 204 | if not self.package_model.path_included(path): |
216 | self.package_model.include_item(item_path=path, binb="User Selected") | 205 | self.package_model.include_item(item_path=path, binb="User Selected") |
diff --git a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py index aea9c0c77c..234734c552 100755 --- a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py +++ b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py | |||
@@ -141,11 +141,6 @@ class RecipeSelectionPage (HobPage): | |||
141 | tab.connect("toggled", self.table_toggled_cb) | 141 | tab.connect("toggled", self.table_toggled_cb) |
142 | if self.pages[i]['name'] == "Included": | 142 | if self.pages[i]['name'] == "Included": |
143 | tab.connect("row-activated", self.tree_row_activated_cb) | 143 | tab.connect("row-activated", self.tree_row_activated_cb) |
144 | reset_button = gtk.Button("Reset") | ||
145 | reset_button.connect("clicked", self.reset_clicked_cb) | ||
146 | hbox = gtk.HBox(False, 5) | ||
147 | hbox.pack_end(reset_button, expand=False, fill=False) | ||
148 | tab.pack_start(hbox, expand=False, fill=False) | ||
149 | 144 | ||
150 | label = gtk.Label(self.pages[i]['name']) | 145 | label = gtk.Label(self.pages[i]['name']) |
151 | self.ins.append_page(tab, label) | 146 | self.ins.append_page(tab, label) |
@@ -201,10 +196,6 @@ class RecipeSelectionPage (HobPage): | |||
201 | self.label.set_text("Recipes included: %s" % len(self.builder.configuration.selected_recipes)) | 196 | self.label.set_text("Recipes included: %s" % len(self.builder.configuration.selected_recipes)) |
202 | self.ins.show_indicator_icon("Included", len(self.builder.configuration.selected_recipes)) | 197 | self.ins.show_indicator_icon("Included", len(self.builder.configuration.selected_recipes)) |
203 | 198 | ||
204 | # Callback functions | ||
205 | def reset_clicked_cb(self, button): | ||
206 | self.builder.reset_recipe_model() | ||
207 | |||
208 | def toggle_item_idle_cb(self, path): | 199 | def toggle_item_idle_cb(self, path): |
209 | if not self.recipe_model.path_included(path): | 200 | if not self.recipe_model.path_included(path): |
210 | self.recipe_model.include_item(item_path=path, binb="User Selected", image_contents=False) | 201 | self.recipe_model.include_item(item_path=path, binb="User Selected", image_contents=False) |