Patchwork [bitbake-devel,3/7] Hob: Initial an empty label in recipeselectionpage.py

login
register
mail settings
Submitter Dongxiao Xu
Date March 23, 2012, 3:07 p.m.
Message ID <db00bf8d46f76c4886e1b67dca199337c3d4daae.1332514895.git.dongxiao.xu@intel.com>
Download mbox | patch
Permalink /patch/24299/
State Accepted
Commit e4f22f6242f489afcadac67cc8dd282936b78586
Headers show

Comments

Dongxiao Xu - March 23, 2012, 3:07 p.m.
When creating label in recipeselectionpage.py, the builder's
configuration may not be ready yet, so create an empty label in
initialization.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 lib/bb/ui/crumbs/recipeselectionpage.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/lib/bb/ui/crumbs/recipeselectionpage.py b/lib/bb/ui/crumbs/recipeselectionpage.py
index 881b2ec..ebdb7c1 100755
--- a/lib/bb/ui/crumbs/recipeselectionpage.py
+++ b/lib/bb/ui/crumbs/recipeselectionpage.py
@@ -118,7 +118,7 @@  class RecipeSelectionPage (HobPage):
         self.create_visual_elements()
 
     def create_visual_elements(self):
-        self.label = gtk.Label("Recipes included: %s" % len(self.builder.configuration.selected_recipes))
+        self.label = gtk.Label()
         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)