summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/packageselectionpage.py10
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/recipeselectionpage.py10
2 files changed, 16 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
index de9bb73ea4..d2c73257f0 100755
--- a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
@@ -109,8 +109,14 @@ class PackageSelectionPage (HobPage):
109 # create visual elements 109 # create visual elements
110 self.create_visual_elements() 110 self.create_visual_elements()
111 111
112 def included_clicked_cb(self, button):
113 self.ins.set_current_page(0)
114
112 def create_visual_elements(self): 115 def create_visual_elements(self):
113 self.label = gtk.Label("Packages included: 0\nSelected packages size: 0 MB") 116 self.label = gtk.Button("Packages included: 0\nSelected packages size: 0 MB")
117 self.label.set_can_default(False)
118 self.label.set_relief(gtk.RELIEF_HALF)
119 self.label.connect("clicked", self.included_clicked_cb)
114 self.eventbox = self.add_onto_top_bar(self.label, 73) 120 self.eventbox = self.add_onto_top_bar(self.label, 73)
115 self.pack_start(self.eventbox, expand=False, fill=False) 121 self.pack_start(self.eventbox, expand=False, fill=False)
116 self.pack_start(self.group_align, expand=True, fill=True) 122 self.pack_start(self.group_align, expand=True, fill=True)
@@ -191,7 +197,7 @@ class PackageSelectionPage (HobPage):
191 image_total_size += (51200 * 1024) 197 image_total_size += (51200 * 1024)
192 image_total_size_str = HobPage._size_to_string(image_total_size) 198 image_total_size_str = HobPage._size_to_string(image_total_size)
193 199
194 self.label.set_text("Packages included: %s\nSelected packages size: %s\nTotal image size: %s" % 200 self.label.set_label("Packages included: %s\nSelected packages size: %s\nTotal image size: %s" %
195 (selected_packages_num, selected_packages_size_str, image_total_size_str)) 201 (selected_packages_num, selected_packages_size_str, image_total_size_str))
196 self.ins.show_indicator_icon("Included", selected_packages_num) 202 self.ins.show_indicator_icon("Included", selected_packages_num)
197 203
diff --git a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
index 7336da91c5..7c1ecdd965 100755
--- a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
@@ -134,8 +134,14 @@ class RecipeSelectionPage (HobPage):
134 # create visual elements 134 # create visual elements
135 self.create_visual_elements() 135 self.create_visual_elements()
136 136
137 def included_clicked_cb(self, button):
138 self.ins.set_current_page(0)
139
137 def create_visual_elements(self): 140 def create_visual_elements(self):
138 self.label = gtk.Label() 141 self.label = gtk.Button('Recipes included: 0')
142 self.label.set_can_default(False)
143 self.label.set_relief(gtk.RELIEF_HALF)
144 self.label.connect("clicked", self.included_clicked_cb)
139 self.eventbox = self.add_onto_top_bar(self.label, 73) 145 self.eventbox = self.add_onto_top_bar(self.label, 73)
140 self.pack_start(self.eventbox, expand=False, fill=False) 146 self.pack_start(self.eventbox, expand=False, fill=False)
141 self.pack_start(self.group_align, expand=True, fill=True) 147 self.pack_start(self.group_align, expand=True, fill=True)
@@ -199,7 +205,7 @@ class RecipeSelectionPage (HobPage):
199 def refresh_selection(self): 205 def refresh_selection(self):
200 self.builder.configuration.selected_image = self.recipe_model.get_selected_image() 206 self.builder.configuration.selected_image = self.recipe_model.get_selected_image()
201 _, self.builder.configuration.selected_recipes = self.recipe_model.get_selected_recipes() 207 _, self.builder.configuration.selected_recipes = self.recipe_model.get_selected_recipes()
202 self.label.set_text("Recipes included: %s" % len(self.builder.configuration.selected_recipes)) 208 self.label.set_label("Recipes included: %s" % len(self.builder.configuration.selected_recipes))
203 self.ins.show_indicator_icon("Included", len(self.builder.configuration.selected_recipes)) 209 self.ins.show_indicator_icon("Included", len(self.builder.configuration.selected_recipes))
204 210
205 def toggle_item_idle_cb(self, path, view_tree, cell, pagename): 211 def toggle_item_idle_cb(self, path, view_tree, cell, pagename):