diff options
author | Kristian Rietveld <kris@imendio.com> | 2007-07-13 14:25:21 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2007-07-13 14:25:21 +0000 |
commit | da989212f391c4c10f9b0136bef3167a33239a26 (patch) | |
tree | 50c05881dc032c5e65d9f96f405659cb1f2ba6be /gtk/gtktreeview.h | |
parent | 07c3dc414dc6dae8a6c962b54216f587f427359d (diff) | |
download | gtk+-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 'gtk/gtktreeview.h')
-rw-r--r-- | gtk/gtktreeview.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk/gtktreeview.h b/gtk/gtktreeview.h index cd5fc487a4..0818081367 100644 --- a/gtk/gtktreeview.h +++ b/gtk/gtktreeview.h @@ -402,6 +402,16 @@ void gtk_tree_view_set_level_indentation (GtkTreeView gint indentation); gint gtk_tree_view_get_level_indentation (GtkTreeView *tree_view); +/* Convenience functions for setting tooltips */ +void gtk_tree_view_set_tooltip_row (GtkTreeView *tree_view, + GtkTooltip *tooltip, + GtkTreePath *path); +void gtk_tree_view_set_tooltip_cell (GtkTreeView *tree_view, + GtkTooltip *tooltip, + GtkTreePath *path, + GtkTreeViewColumn *column, + GtkCellRenderer *cell); + G_END_DECLS |