aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristian Iorga <cristian.iorga@intel.com>2012-06-22 19:08:24 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-25 14:18:57 +0100
commite6ff1d4bab43fdcd8af1230f1d54615f53c1978e (patch)
tree7a16c4c70f53f944d6b358ad5a449d4439ff4c18
parentfe514a130579302312f68821536d108c8ceb4363 (diff)
downloadbitbake-e6ff1d4bab43fdcd8af1230f1d54615f53c1978e.tar.gz
bitbake-e6ff1d4bab43fdcd8af1230f1d54615f53c1978e.tar.bz2
bitbake-e6ff1d4bab43fdcd8af1230f1d54615f53c1978e.zip
Fix for Hob bug #2323
Removed unnecessary button from Recipes screen and replaced the button that diplayed packages size and total image size from Packages screen with a label. Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xlib/bb/ui/crumbs/packageselectionpage.py7
-rwxr-xr-xlib/bb/ui/crumbs/recipeselectionpage.py9
2 files changed, 4 insertions, 12 deletions
diff --git a/lib/bb/ui/crumbs/packageselectionpage.py b/lib/bb/ui/crumbs/packageselectionpage.py
index 98958353..1b832eb6 100755
--- a/lib/bb/ui/crumbs/packageselectionpage.py
+++ b/lib/bb/ui/crumbs/packageselectionpage.py
@@ -113,15 +113,12 @@ class PackageSelectionPage (HobPage):
self.ins.set_current_page(0)
def create_visual_elements(self):
- self.label = gtk.Button("Packages included: 0\nSelected packages size: 0 MB")
- self.label.set_can_default(False)
- self.label.set_relief(gtk.RELIEF_HALF)
- self.label.connect("clicked", self.included_clicked_cb)
+ self.label = gtk.Label("Packages included: 0\nSelected packages size: 0 MB")
self.eventbox = self.add_onto_top_bar(self.label, 73)
self.pack_start(self.eventbox, expand=False, fill=False)
self.pack_start(self.group_align, expand=True, fill=True)
- # set visiable members
+ # set visible members
self.ins = HobNotebook()
self.tables = [] # we need to modify table when the dialog is shown
# append the tab
diff --git a/lib/bb/ui/crumbs/recipeselectionpage.py b/lib/bb/ui/crumbs/recipeselectionpage.py
index ece37e06..af68f2a7 100755
--- a/lib/bb/ui/crumbs/recipeselectionpage.py
+++ b/lib/bb/ui/crumbs/recipeselectionpage.py
@@ -138,15 +138,11 @@ class RecipeSelectionPage (HobPage):
self.ins.set_current_page(0)
def create_visual_elements(self):
- self.label = gtk.Button('Recipes included: 0')
- self.label.set_can_default(False)
- self.label.set_relief(gtk.RELIEF_HALF)
- self.label.connect("clicked", self.included_clicked_cb)
- self.eventbox = self.add_onto_top_bar(self.label, 73)
+ self.eventbox = self.add_onto_top_bar(None, 73)
self.pack_start(self.eventbox, expand=False, fill=False)
self.pack_start(self.group_align, expand=True, fill=True)
- # set visiable members
+ # set visible members
self.ins = HobNotebook()
self.tables = [] # we need modify table when the dialog is shown
# append the tabs in order
@@ -205,7 +201,6 @@ class RecipeSelectionPage (HobPage):
def refresh_selection(self):
self.builder.configuration.selected_image = self.recipe_model.get_selected_image()
_, self.builder.configuration.selected_recipes = self.recipe_model.get_selected_recipes()
- self.label.set_label("Recipes included: %s" % len(self.builder.configuration.selected_recipes))
self.ins.show_indicator_icon("Included", len(self.builder.configuration.selected_recipes))
def toggle_item_idle_cb(self, path, view_tree, cell, pagename):