translate coordinates from the window they were received on to the event

2007-05-23  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtktooltip.c (find_widget_under_pointer): translate coordinates
	from the window they were received on to the event widget's window;
	correct for no-window widgets after that, bail out on failure.  This
	makes the coordinates given by GtkWidget::query-tooltip truly relative
	to widget->window.  (#435188).

	* gtk/gtkwidget.c (gtk_widget_class_init): update docs for
	GtkWidget::query-tooltip.


svn path=/trunk/; revision=17896
This commit is contained in:
Kristian Rietveld
2007-05-23 12:32:42 +00:00
committed by Kristian Rietveld
parent 858c08aea6
commit 5e59105ea3
3 changed files with 39 additions and 2 deletions

View File

@ -1514,9 +1514,9 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* GtkWidget::query-tooltip:
* @widget: the object which received the signal
* @x: the x coordinate of the cursor position where the request has been
* emitted, relative to the widget's allocation
* emitted, relative to widget->window
* @y: the y coordinate of the cursor position where the request has been
* emitted, relative to the widget's allocation
* emitted, relative to widget->window
* @keyboard_mode: %TRUE if the tooltip was trigged using the keyboard
* @tooltip: a #GtkTooltip
*