diff options
author | Joshua Lock <josh@linux.intel.com> | 2012-03-02 15:43:37 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-12 02:26:13 +0000 |
commit | ee0c3023c4d9ff6b9e2a5097428b1475d33f2aa8 (patch) | |
tree | 295c4c6010acc2cf89d377f4b9ca0c86b8f3efd7 /bitbake | |
parent | 26ff0faabd56e84df41eee507b860e75be3f8870 (diff) | |
download | poky-ee0c3023c4d9ff6b9e2a5097428b1475d33f2aa8.tar.gz |
ui/crumbs/imageconfigurationpage: make use of the HobInfoButton
Use the new HobInfoButton widget in place of the existing gtk.Image with
tooltip.
Modify the markup of the tooltip so that the link to the reference manual
is a clickable hyperlink.
(Bitbake rev: 10b4a6770640db49f2f55b8ad7ce55aebb250598)
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py index db54d79b2a..f029bf8e61 100644 --- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py +++ b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | |||
@@ -24,7 +24,7 @@ import gtk | |||
24 | import glib | 24 | import glib |
25 | from bb.ui.crumbs.progressbar import HobProgressBar | 25 | from bb.ui.crumbs.progressbar import HobProgressBar |
26 | from bb.ui.crumbs.hobcolor import HobColors | 26 | from bb.ui.crumbs.hobcolor import HobColors |
27 | from bb.ui.crumbs.hobwidget import hic, HobXpmLabelButtonBox | 27 | from bb.ui.crumbs.hobwidget import hic, HobXpmLabelButtonBox, HobInfoButton |
28 | from bb.ui.crumbs.hoblistmodel import RecipeListModel | 28 | from bb.ui.crumbs.hoblistmodel import RecipeListModel |
29 | from bb.ui.crumbs.hobpages import HobPage | 29 | from bb.ui.crumbs.hobpages import HobPage |
30 | 30 | ||
@@ -137,16 +137,12 @@ class ImageConfigurationPage (HobPage): | |||
137 | "Layers", "Add support for machines, software, etc") | 137 | "Layers", "Add support for machines, software, etc") |
138 | self.layer_button.connect("button-release-event", self.layer_button_clicked_cb) | 138 | self.layer_button.connect("button-release-event", self.layer_button_clicked_cb) |
139 | 139 | ||
140 | icon_file = hic.ICON_INFO_DISPLAY_FILE | ||
141 | self.layer_info_icon = gtk.Image() | ||
142 | pix_buffer = gtk.gdk.pixbuf_new_from_file(icon_file) | ||
143 | self.layer_info_icon.set_from_pixbuf(pix_buffer) | ||
144 | markup = "Layers are a powerful mechanism to extend the Yocto Project " | 140 | markup = "Layers are a powerful mechanism to extend the Yocto Project " |
145 | markup += "with your own functionality.\n" | 141 | markup += "with your own functionality.\n" |
146 | markup += "For more on layers, check:\n" | 142 | markup += "For more on layers, check the <a href=\"" |
147 | markup += "http://www.yoctoproject.org/docs/current/poky-ref-manual/" | 143 | markup += "http://www.yoctoproject.org/docs/current/poky-ref-manual/" |
148 | markup += "poky-ref-manual.html#usingpoky-changes-layers." | 144 | markup += "poky-ref-manual.html#usingpoky-changes-layers\">reference manual</a>." |
149 | self.layer_info_icon.set_tooltip_markup(markup) | 145 | self.layer_info_icon = HobInfoButton(markup, self.get_parent()) |
150 | 146 | ||
151 | self.progress_bar = HobProgressBar() | 147 | self.progress_bar = HobProgressBar() |
152 | self.machine_separator = gtk.HSeparator() | 148 | self.machine_separator = gtk.HSeparator() |