diff options
author | Kristian Rietveld <kris@imendio.com> | 2007-07-19 13:21:09 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2007-07-19 13:21:09 +0000 |
commit | b1ec5f7556cf989f44331cde1db97ed5d4a2d2db (patch) | |
tree | 308d98eb4e3fb1355408501b6d00d1de5edb7127 /tests | |
parent | 6f52e073b34b109860aad957f2472f58e00d227d (diff) | |
download | gtk+-b1ec5f7556cf989f44331cde1db97ed5d4a2d2db.tar.gz |
add more convenience API.
2007-07-19 Kristian Rietveld <kris@imendio.com>
* gtk/gtk.symbols:
* gtk/gtktreeprivate.h:
* gtk/gtktreeview.[ch] (gtk_tree_view_get_tooltip_context),
(gtk_tree_view_[sg]et_tooltip_column): add more convenience API.
* tests/testtooltip.c (query_tooltip_tree_view_cb): use
gtk_tree_view_get_tooltip_context().
* demos/gtk-demo/demo.ui: add a tooltip column to the list store,
set tooltip-column on the tree view.
svn path=/trunk/; revision=18496
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testtooltips.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/testtooltips.c b/tests/testtooltips.c index 22f54da6c9..7aa8f59c70 100644 --- a/tests/testtooltips.c +++ b/tests/testtooltips.c @@ -128,7 +128,11 @@ query_tooltip_tree_view_cb (GtkWidget *widget, return FALSE; } - gtk_tree_model_get_iter (model, &iter, path); + if (!gtk_tree_view_get_tooltip_context (tree_view, &x, &y, + keyboard_tip, + &model, &path, &iter)) + return FALSE; + gtk_tree_model_get (model, &iter, 0, &tmp, -1); pathstring = gtk_tree_path_to_string (path); |