]> Pileus Git - ~andy/gtk/commitdiff
ignore invisible (!drawable) widgets. (Fixes bug reported by Paolo
authorKristian Rietveld <kris@imendio.com>
Tue, 10 Jul 2007 17:40:05 +0000 (17:40 +0000)
committerKristian Rietveld <kristian@src.gnome.org>
Tue, 10 Jul 2007 17:40:05 +0000 (17:40 +0000)
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

ChangeLog
gtk/gtktooltip.c

index 602e73aecbf8c1e4f5c9461de81863dfd325c241..876335ff3416076cf45ea0cffe8170d0974ea1a6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 0b5093f1928cabcae59c6d091ee258f8e19ee4da..045f9b182dbe9c0751e4474ff049c4e1a10f9dba 100644 (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,