--- gtkwidget.c	2004-03-07 05:55:23.000000000 +1100
+++ gtkwidget2.c	2004-04-25 05:17:32.000000000 +1000
@@ -3649,8 +3649,11 @@
 	{
 	  GtkWidget *child;
 	  GdkWindow *window = tmp_list->data;
+          gpointer pchild;
+
+	  gdk_window_get_user_data (window, &pchild);
+          child = (GtkWidget*) &pchild;
 
-	  gdk_window_get_user_data (window, (void **)&child);
 	  while (child && child != widget)
 	    child = child->parent;
 
