diff options
author | George Lebl <jirka@5z.com> | 1999-01-17 03:49:31 +0000 |
---|---|---|
committer | George Lebl <jirka@src.gnome.org> | 1999-01-17 03:49:31 +0000 |
commit | 2daaea2f983e54aa5715885e1d3eacfdc25aaf34 (patch) | |
tree | c7506a8be947318ef2067ef2cff5963cf7076405 /gtk/gtktooltips.c | |
parent | ad4983713f54918b6d5c1e76fa32ca9ad5010bf9 (diff) | |
download | gtk+-2daaea2f983e54aa5715885e1d3eacfdc25aaf34.tar.gz |
for NO_WINDOW widgets, add their allocation.y to the position of the
Sat Jan 16 19:42:48 1999 George Lebl <jirka@5z.com>
* gtk/gtktooltips.c: for NO_WINDOW widgets, add their allocation.y
to the position of the tooltip. This fixes tooltip positioning
problems with some widgets such as a checkbox.
Diffstat (limited to 'gtk/gtktooltips.c')
-rw-r--r-- | gtk/gtktooltips.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtktooltips.c b/gtk/gtktooltips.c index 4b219471df..2450398329 100644 --- a/gtk/gtktooltips.c +++ b/gtk/gtktooltips.c @@ -472,6 +472,8 @@ gtk_tooltips_draw_tips (GtkTooltips * tooltips) gdk_window_get_pointer (NULL, &x, NULL, NULL); gdk_window_get_origin (widget->window, NULL, &y); + if (GTK_WIDGET_NO_WINDOW (widget)) + y += widget->allocation.y; x -= ((w >> 1) + 4); |