From: Kristian Rietveld Date: Tue, 10 Jul 2007 17:40:05 +0000 (+0000) Subject: ignore invisible (!drawable) widgets. (Fixes bug reported by Paolo X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=94cfbbfa152e28b9e163d1290c58961cc892f9c3;p=~andy%2Fgtk ignore invisible (!drawable) widgets. (Fixes bug reported by Paolo 2007-07-10 Kristian Rietveld * gtk/gtktooltip.c (child_location_foreach): ignore invisible (!drawable) widgets. (Fixes bug reported by Paolo Borelli). svn path=/trunk/; revision=18435 --- diff --git a/ChangeLog b/ChangeLog index 602e73aec..876335ff3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-07-10 Kristian Rietveld + + * gtk/gtktooltip.c (child_location_foreach): ignore invisible + (!drawable) widgets. (Fixes bug reported by Paolo Borelli). + 2007-07-10 Matthias Clasen * README.in: Make sure all deprecations are mentioned. diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c index 0b5093f19..045f9b182 100644 --- a/gtk/gtktooltip.c +++ b/gtk/gtktooltip.c @@ -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,