How to set a tool tip on a gtk_tree_store ?
- From: Gregory Hosler <ghosler redhat com>
- To: GTK developer list <gtk-app-devel-list gnome org>
- Subject: How to set a tool tip on a gtk_tree_store ?
- Date: Tue, 12 May 2009 00:55:15 +0800
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi All,
I have a gtk_tree_store (a GtkTreeView, which I gtk_tree_store_append) rows to.
I wish to have a tooltip in the form of a pixbuf.
I further wish the tooltip ONLY on certain entries in one of the columns, and
not on other rows, or other columns. i.e. a per cell specification would be idea.
- From what I gather (looking at GtkTooltip) I can
gtk_tooltip_set_icon()
on the GtkTooltip of a widget.
The problem I'm facing is getting the GtkTooltip of a cell of the GtkTreeStore.
Has anyone done this, or seen sample code ?
I have read on gtk_tree_view_set_tooltip_cell(), but this requires me to
identify the GtkTreePath (to identify the row) and GtkTreeViewColumn (to
identify the column), and set the GtkTooltip. Again, I need a GtkTooltip.
The GtkTooltip doesn't appear to have a "new" function, and only appears to be
obtainable by setting the "has-tooltip" (which I would want to set on the cell),
and then the invoked callback from the "query-tooltip" signal. The problem is
that the private data will be different for each individual cell which has a
tool tip.
I cannot figure out a combination of calls/callbacks that will get me a
specified pixbuf for a specific cell.
Anyone famialiar enough with either the GtkTooltip interface, or with
GtkTreeView/Store ?
Thank you, and all the best,
- -Greg
- --
+---------------------------------------------------------------------+
Please also check the log file at "/dev/null" for additional information.
(from /var/log/Xorg.setup.log)
| Greg Hosler ghosler redhat com |
+---------------------------------------------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkoIWHEACgkQ404fl/0CV/RQqQCg5C1XmnxaSRyy/9QabG/j0pY1
GgoAn1tGOj0nQZub3+1kZt8KOpA17KPy
=o4aa
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]