Commit 50a0d3b8 authored by Kristian Rietveld's avatar Kristian Rietveld Committed by Kristian Rietveld

check if the pointer is really over the returned widget, since the

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
parent ed339f27
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):
......
......@@ -593,6 +593,11 @@ find_topmost_widget_coords_from_event (GdkEvent *event,
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment