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.
This commit is contained in:
George Lebl 1999-01-17 03:49:31 +00:00 committed by George Lebl
parent ad4983713f
commit 2daaea2f98
8 changed files with 44 additions and 0 deletions

View File

@ -1,3 +1,9 @@
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.
Sat Jan 16 14:01:53 1999 Stuart Parmenter <pavlov@gtk.org>
* gtk/gtklayout.c (gtk_layout_put): check for child widget being NULL

View File

@ -1,3 +1,9 @@
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.
Sat Jan 16 14:01:53 1999 Stuart Parmenter <pavlov@gtk.org>
* gtk/gtklayout.c (gtk_layout_put): check for child widget being NULL

View File

@ -1,3 +1,9 @@
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.
Sat Jan 16 14:01:53 1999 Stuart Parmenter <pavlov@gtk.org>
* gtk/gtklayout.c (gtk_layout_put): check for child widget being NULL

View File

@ -1,3 +1,9 @@
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.
Sat Jan 16 14:01:53 1999 Stuart Parmenter <pavlov@gtk.org>
* gtk/gtklayout.c (gtk_layout_put): check for child widget being NULL

View File

@ -1,3 +1,9 @@
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.
Sat Jan 16 14:01:53 1999 Stuart Parmenter <pavlov@gtk.org>
* gtk/gtklayout.c (gtk_layout_put): check for child widget being NULL

View File

@ -1,3 +1,9 @@
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.
Sat Jan 16 14:01:53 1999 Stuart Parmenter <pavlov@gtk.org>
* gtk/gtklayout.c (gtk_layout_put): check for child widget being NULL

View File

@ -1,3 +1,9 @@
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.
Sat Jan 16 14:01:53 1999 Stuart Parmenter <pavlov@gtk.org>
* gtk/gtklayout.c (gtk_layout_put): check for child widget being NULL

View File

@ -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);