diff options
author | Liming An <limingx.l.an@intel.com> | 2012-04-09 22:13:34 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-11 00:04:44 +0100 |
commit | 4495a73abc5ad30bd973691b4b3ed0988468377a (patch) | |
tree | 78b951212542de6701ec4e39cf477d71d4c74653 /bitbake/lib/bb/ui/crumbs/recipeselectionpage.py | |
parent | e1d463eb3931014427a1d108944eaa55f21880c0 (diff) | |
download | poky-4495a73abc5ad30bd973691b4b3ed0988468377a.tar.gz |
Hob: Add the tooltips for recipe view page as request
[YOCTO #2229]
(Bitbake rev: 37c969164a6ef9adcaa743a3909102b005a55163)
Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/recipeselectionpage.py')
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/recipeselectionpage.py | 8 |
1 files changed, 8 insertions, 0 deletions
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): | |||
34 | pages = [ | 34 | pages = [ |
35 | { | 35 | { |
36 | 'name' : 'Included', | 36 | 'name' : 'Included', |
37 | 'tooltip' : 'The recipes currently included for your image', | ||
37 | 'filter' : { RecipeListModel.COL_INC : [True], | 38 | 'filter' : { RecipeListModel.COL_INC : [True], |
38 | RecipeListModel.COL_TYPE : ['recipe', 'task'] }, | 39 | RecipeListModel.COL_TYPE : ['recipe', 'task'] }, |
39 | 'columns' : [{ | 40 | 'columns' : [{ |
@@ -66,6 +67,7 @@ class RecipeSelectionPage (HobPage): | |||
66 | }] | 67 | }] |
67 | }, { | 68 | }, { |
68 | 'name' : 'All recipes', | 69 | 'name' : 'All recipes', |
70 | 'tooltip' : 'All recipes available in the Yocto Project', | ||
69 | 'filter' : { RecipeListModel.COL_TYPE : ['recipe'] }, | 71 | 'filter' : { RecipeListModel.COL_TYPE : ['recipe'] }, |
70 | 'columns' : [{ | 72 | 'columns' : [{ |
71 | 'col_name' : 'Recipe name', | 73 | 'col_name' : 'Recipe name', |
@@ -97,6 +99,7 @@ class RecipeSelectionPage (HobPage): | |||
97 | }] | 99 | }] |
98 | }, { | 100 | }, { |
99 | 'name' : 'Tasks', | 101 | 'name' : 'Tasks', |
102 | 'tooltip' : 'All tasks availabel in the Yocto Project', | ||
100 | 'filter' : { RecipeListModel.COL_TYPE : ['task'] }, | 103 | 'filter' : { RecipeListModel.COL_TYPE : ['task'] }, |
101 | 'columns' : [{ | 104 | 'columns' : [{ |
102 | 'col_name' : 'Task name', | 105 | 'col_name' : 'Task name', |
@@ -151,12 +154,17 @@ class RecipeSelectionPage (HobPage): | |||
151 | tab.connect("button-release-event", self.button_click_cb) | 154 | tab.connect("button-release-event", self.button_click_cb) |
152 | tab.connect("cell-fadeinout-stopped", self.after_fadeout_checkin_include) | 155 | tab.connect("cell-fadeinout-stopped", self.after_fadeout_checkin_include) |
153 | label = gtk.Label(page['name']) | 156 | label = gtk.Label(page['name']) |
157 | label.set_selectable(False) | ||
158 | label.set_tooltip_text(page['tooltip']) | ||
154 | self.ins.append_page(tab, label) | 159 | self.ins.append_page(tab, label) |
155 | self.tables.append(tab) | 160 | self.tables.append(tab) |
156 | 161 | ||
157 | self.ins.set_entry("Search recipes:") | 162 | self.ins.set_entry("Search recipes:") |
158 | # set the search entry for each table | 163 | # set the search entry for each table |
159 | for tab in self.tables: | 164 | for tab in self.tables: |
165 | search_tip = "Enter a recipe's or task's name to find it" | ||
166 | self.ins.search.set_tooltip_text(search_tip) | ||
167 | self.ins.search.props.has_tooltip = True | ||
160 | tab.set_search_entry(0, self.ins.search) | 168 | tab.set_search_entry(0, self.ins.search) |
161 | 169 | ||
162 | # add all into the window | 170 | # add all into the window |