--- testgtk.c	2004-04-25 23:56:57.000000000 +1000
+++ testgtk2.c	2004-04-26 00:01:26.000000000 +1000
@@ -4119,6 +4119,7 @@
 create_key_lookup (GtkWidget *widget)
 {
   static GtkWidget *window = NULL;
+  static gpointer pwindow = NULL;
 
   if (!window)
     {
@@ -4160,6 +4161,7 @@
       gtk_box_pack_start (GTK_BOX (GTK_DIALOG (window)->vbox), button, FALSE, FALSE, 0);
       
       g_object_add_weak_pointer (G_OBJECT (window), (gpointer *)&window);
+      windows = (GtkWidget*) &pwindow;
       g_signal_connect (window, "response", G_CALLBACK (gtk_object_destroy), NULL);
 
       gtk_widget_show_all (window);
@@ -11250,7 +11252,7 @@
   gint x, y;
   FindWidgetData data;
  
- pointer_window = gdk_display_get_window_at_pointer (display, NULL, NULL);
+ pointer_window = (GdkWindow*) gdk_display_get_window_at_pointer (display, NULL, NULL);
  
  if (pointer_window)
    gdk_window_get_user_data (pointer_window, (gpointer*) &widget);
