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/gtktooltip.h | |
parent | 07c3dc414dc6dae8a6c962b54216f587f427359d (diff) | |
download | gdk-pixbuf-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/gtktooltip.h')
-rw-r--r-- | gtk/gtktooltip.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtktooltip.h b/gtk/gtktooltip.h index eb9ff41f5..bc498af47 100644 --- a/gtk/gtktooltip.h +++ b/gtk/gtktooltip.h @@ -45,6 +45,9 @@ void gtk_tooltip_set_icon_from_stock (GtkTooltip *tooltip, void gtk_tooltip_set_custom (GtkTooltip *tooltip, GtkWidget *custom_widget); +void gtk_tooltip_set_tip_area (GtkTooltip *tooltip, + GdkRectangle *rect); + void gtk_tooltip_trigger_tooltip_query (GdkDisplay *display); |