gtk+ r22277 - in trunk: . gtk



Author: matthiasc
Date: Wed Feb  4 01:16:35 2009
New Revision: 22277
URL: http://svn.gnome.org/viewvc/gtk+?rev=22277&view=rev

Log:
        * gtk/gtktooltip.c (gtk_tooltip_trigger_query): Set the root
        coordinates in the event correctly. Patch by Kristian Rietveld.



Modified:
   trunk/ChangeLog
   trunk/gtk/gtktooltip.c

Modified: trunk/gtk/gtktooltip.c
==============================================================================
--- trunk/gtk/gtktooltip.c	(original)
+++ trunk/gtk/gtktooltip.c	Wed Feb  4 01:16:35 2009
@@ -440,6 +440,10 @@
   event.motion.y = y;
   event.motion.is_hint = FALSE;
 
+  gdk_window_get_origin (window, &x, &y);
+  event.motion.x_root = event.motion.x + x;
+  event.motion.y_root = event.motion.y + y;
+
   _gtk_tooltip_handle_event (&event);
 }
 
@@ -518,6 +522,9 @@
   if (!GTK_WIDGET_DRAWABLE (child))
     return;
 
+  x = 0;
+  y = 0;
+
   /* (child_loc->x, child_loc->y) are relative to
    * child_loc->container's allocation.
    */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]