]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/win_gtk.c
Corrected wxFileSystemHandler::GetRightLocation for the case
[wxWidgets.git] / src / gtk1 / win_gtk.c
index 27e2d156bb50c6ce4a580f9e999e70e88e94cfdf..fecb23b7f50ea549fd8dcc008dd8696d2cdeb20b 100644 (file)
@@ -310,11 +310,11 @@ gtk_pizza_put (GtkPizza   *pizza,
 
     pizza->children = g_list_append (pizza->children, child_info);
 
-    gtk_widget_set_parent (widget, GTK_WIDGET (pizza));
-
     if (GTK_WIDGET_REALIZED (pizza))
       gtk_widget_set_parent_window (widget, pizza->bin_window);
 
+    gtk_widget_set_parent (widget, GTK_WIDGET (pizza));
+
 #ifndef __WXGTK20__ /* FIXME? */
     if (!IS_ONSCREEN (x, y))
        GTK_PRIVATE_SET_FLAG (widget, GTK_IS_OFFSCREEN);