summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKristian Rietveld <kris@imendio.com>2007-07-13 14:25:21 +0000
committerKristian Rietveld <kristian@src.gnome.org>2007-07-13 14:25:21 +0000
commitda989212f391c4c10f9b0136bef3167a33239a26 (patch)
tree50c05881dc032c5e65d9f96f405659cb1f2ba6be /tests
parent07c3dc414dc6dae8a6c962b54216f587f427359d (diff)
downloadgtk+-da989212f391c4c10f9b0136bef3167a33239a26.tar.gz
#408327, improve tooltip positioning.
2007-07-13 Kristian Rietveld <kris@imendio.com> #408327, improve tooltip positioning. * gtk/gtk.symbols: updated. * gtk/gtktooltip.[ch] (gtk_tooltip_position): factor out positioning code in here, (gtk_tooltip_set_tip_area): new function to set the tooltip area, (gtk_tooltip_reset), (_gtk_tooltip_handle_event): hide tooltip once the pointer leaves the tip area. * gtk/gtktreeview.[ch] (gtk_tree_view_set_tooltip_row), (gtk_tree_view_set_tooltip_cell): convenience functions to set tip area for row/column/cell. * tests/testtooltips.c (query_tooltip_tree_view_cb): use gtk_tree_view_set_tooltip_row. svn path=/trunk/; revision=18464
Diffstat (limited to 'tests')
-rw-r--r--tests/testtooltips.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/testtooltips.c b/tests/testtooltips.c
index 358cb90654..22f54da6c9 100644
--- a/tests/testtooltips.c
+++ b/tests/testtooltips.c
@@ -135,6 +135,8 @@ query_tooltip_tree_view_cb (GtkWidget *widget,
g_snprintf (buffer, 511, "<b>Path %s:</b> %s", pathstring, tmp);
gtk_tooltip_set_markup (tooltip, buffer);
+ gtk_tree_view_set_tooltip_row (tree_view, tooltip, path);
+
gtk_tree_path_free (path);
g_free (pathstring);
g_free (tmp);