ignore invisible (!drawable) widgets. (Fixes bug reported by Paolo

2007-07-10  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtktooltip.c (child_location_foreach): ignore invisible
	(!drawable) widgets.  (Fixes bug reported by Paolo Borelli).


svn path=/trunk/; revision=18435
This commit is contained in:
Kristian Rietveld 2007-07-10 17:40:05 +00:00 committed by Kristian Rietveld
parent b7c973834c
commit 94cfbbfa15
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-07-10 Kristian Rietveld <kris@imendio.com>
* gtk/gtktooltip.c (child_location_foreach): ignore invisible
(!drawable) widgets. (Fixes bug reported by Paolo Borelli).
2007-07-10 Matthias Clasen <mclasen@redhat.com>
* README.in: Make sure all deprecations are mentioned.

View File

@ -414,6 +414,10 @@ child_location_foreach (GtkWidget *child,
gint x, y;
struct ChildLocation *child_loc = data;
/* Ignore invisible widgets */
if (!GTK_WIDGET_DRAWABLE (child))
return;
if (!child_loc->child &&
gtk_widget_translate_coordinates (child_loc->container, child,
child_loc->x, child_loc->y,