]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkoffscreenwindow.c
Drop the Motif DND protocol
[~andy/gtk] / gtk / gtkoffscreenwindow.c
index e5a33cca40ad9fd6d483e2f2dbe8a44924bc6bca..8e9f23f02ce997649891ec1aa933c16e88b80851 100644 (file)
@@ -183,7 +183,7 @@ gtk_offscreen_window_realize (GtkWidget *widget)
   window = gdk_window_new (gtk_widget_get_parent_window (widget),
                            &attributes, attributes_mask);
   gtk_widget_set_window (widget, window);
-  gdk_window_set_user_data (window, widget);
+  gtk_widget_register_window (widget, window);
 
   child = gtk_bin_get_child (bin);
   if (child)