2007-07-16 Kristian Rietveld <kris@imendio.com>
* gtk/gtktooltip.c (find_topmost_widget_coords_from_event): check
if the pointer is really over the returned widget, since the
coordinate check may not always be hit in find_widget_under_pointer().
svn path=/trunk/; revision=18478
+2007-07-16 Kristian Rietveld <kris@imendio.com>
+
+ * gtk/gtktooltip.c (find_topmost_widget_coords_from_event): check
+ if the pointer is really over the returned widget, since the
+ coordinate check may not always be hit in find_widget_under_pointer().
+
2007-07-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserbutton.c (model_add_special_get_info_cb):
tmp = find_widget_under_pointer (event->any.window, &tx, &ty);
+ /* Make sure the pointer can actually be on the widget returned */
+ if (tx < 0 || tx >= tmp->allocation.width ||
+ ty < 0 || ty >= tmp->allocation.height)
+ return NULL;
+
if (x)
*x = tx;
if (y)