From cb81f1a6f1d8454dd09edf46688ba55e5f2774d4 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Tue, 12 Jul 2005 22:05:43 +0000 Subject: [PATCH] Applied fix for wxCreateTopLevelRealizedWidget crash. Patch #1231717 by Johan van Zyl. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/motif/app.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/motif/app.cpp b/src/motif/app.cpp index ef63f6206e..4add04f7cf 100644 --- a/src/motif/app.cpp +++ b/src/motif/app.cpp @@ -38,7 +38,6 @@ #pragma message disable nosimpint #endif #include -#include #include #include #include @@ -307,9 +306,9 @@ WXWidget wxCreateTopLevelWidget( WXDisplay* display ) WXWidget wxCreateTopLevelRealizedWidget( WXDisplay* display ) { - Widget rTlw = XtVaCreateWidget( "dummy_widget", xmLabelWidgetClass, + Widget rTlw = XtVaCreateWidget( "dummy_widget", topLevelShellWidgetClass, (Widget)wxTheApp->GetTopLevelWidget(), - NULL); + NULL, 0 ); XtSetMappedWhenManaged( rTlw, False ); XtRealizeWidget( rTlw ); -- 2.45.2