]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/toplevel.cpp
1. handle Alt-F4 in wxUniv, not wxMGL
[wxWidgets.git] / src / gtk / toplevel.cpp
index 3bbb16f09838c2e5b30e94daf296eff502cea20b..8f33dbd97b0212fd421323b0dd80855f9afad5b5 100644 (file)
@@ -376,7 +376,14 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
         win_type = GTK_WINDOW_POPUP;
 
     if (GetExtraStyle() & wxTOPLEVEL_EX_DIALOG)
         win_type = GTK_WINDOW_POPUP;
 
     if (GetExtraStyle() & wxTOPLEVEL_EX_DIALOG)
+    {
+        // there is no more GTK_WINDOW_DIALOG in 2.0
+#ifdef __WXGTK20__
+        win_type = GTK_WINDOW_TOPLEVEL;
+#else
         win_type = GTK_WINDOW_DIALOG;
         win_type = GTK_WINDOW_DIALOG;
+#endif
+    }
 
     m_widget = gtk_window_new( win_type );
 
 
     m_widget = gtk_window_new( win_type );