From 4495a73abc5ad30bd973691b4b3ed0988468377a Mon Sep 17 00:00:00 2001 From: Liming An Date: Mon, 9 Apr 2012 22:13:34 +0800 Subject: Hob: Add the tooltips for recipe view page as request [YOCTO #2229] (Bitbake rev: 37c969164a6ef9adcaa743a3909102b005a55163) Signed-off-by: Liming An Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/recipeselectionpage.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bitbake/lib/bb/ui/crumbs/recipeselectionpage.py') diff --git a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py index 46f86e6cdd..6ecc7965d0 100755 --- a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py +++ b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py @@ -34,6 +34,7 @@ class RecipeSelectionPage (HobPage): pages = [ { 'name' : 'Included', + 'tooltip' : 'The recipes currently included for your image', 'filter' : { RecipeListModel.COL_INC : [True], RecipeListModel.COL_TYPE : ['recipe', 'task'] }, 'columns' : [{ @@ -66,6 +67,7 @@ class RecipeSelectionPage (HobPage): }] }, { 'name' : 'All recipes', + 'tooltip' : 'All recipes available in the Yocto Project', 'filter' : { RecipeListModel.COL_TYPE : ['recipe'] }, 'columns' : [{ 'col_name' : 'Recipe name', @@ -97,6 +99,7 @@ class RecipeSelectionPage (HobPage): }] }, { 'name' : 'Tasks', + 'tooltip' : 'All tasks availabel in the Yocto Project', 'filter' : { RecipeListModel.COL_TYPE : ['task'] }, 'columns' : [{ 'col_name' : 'Task name', @@ -151,12 +154,17 @@ class RecipeSelectionPage (HobPage): tab.connect("button-release-event", self.button_click_cb) tab.connect("cell-fadeinout-stopped", self.after_fadeout_checkin_include) label = gtk.Label(page['name']) + label.set_selectable(False) + label.set_tooltip_text(page['tooltip']) self.ins.append_page(tab, label) self.tables.append(tab) self.ins.set_entry("Search recipes:") # set the search entry for each table for tab in self.tables: + search_tip = "Enter a recipe's or task's name to find it" + self.ins.search.set_tooltip_text(search_tip) + self.ins.search.props.has_tooltip = True tab.set_search_entry(0, self.ins.search) # add all into the window -- cgit v1.2.3-54-g00ecf