]> Pileus Git - ~andy/gtk/blobdiff - tests/testtooltips.c
#408327, improve tooltip positioning.
[~andy/gtk] / tests / testtooltips.c
index 358cb9065443ef772bc27b24d32da44e6161891e..22f54da6c9975096e077c434fe2b30c65339956d 100644 (file)
@@ -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);