changes to make wxGTK compile with GTK+ 2.0: now it does but the minimal
sample crashes on startup git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -376,7 +376,14 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
|
||||
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;
|
||||
#endif
|
||||
}
|
||||
|
||||
m_widget = gtk_window_new( win_type );
|
||||
|
||||
|
Reference in New Issue
Block a user