X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0ec6fd04ebd5f37220cb0d4d7c6d7256af50aee7..ccb234b4d0b4f52ddb3100b55b53b32d1ea78d52:/src/motif/toplevel.cpp diff --git a/src/motif/toplevel.cpp b/src/motif/toplevel.cpp index d507efc74b..031a3c23dd 100644 --- a/src/motif/toplevel.cpp +++ b/src/motif/toplevel.cpp @@ -25,7 +25,11 @@ #include "wx/app.h" #ifdef __VMS__ - #pragma message disable nosimpint +#define XtDisplay XTDISPLAY +#define XtParent XTPARENT +#define XtScreen XTSCREEN +#define XtWindow XTWINDOW +#pragma message disable nosimpint #endif #include @@ -60,7 +64,7 @@ static void wxTLWEventHandler( Widget wid, // wxTopLevelWindowMotif implementation // =========================================================================== -wxTopLevelWindowMotif::~wxTopLevelWindowMotif() +void wxTopLevelWindowMotif::PreDestroy() { wxTopLevelWindows.DeleteObject(this); @@ -81,13 +85,14 @@ wxTopLevelWindowMotif::~wxTopLevelWindowMotif() wxTLWEventHandler, (XtPointer)this ); } +} - DoDestroy(); - +wxTopLevelWindowMotif::~wxTopLevelWindowMotif() +{ SetMainWidget( (WXWidget)0 ); // If this is the last top-level window, exit. - if (wxTheApp && (wxTopLevelWindows.Number() == 0)) + if (wxTheApp && (wxTopLevelWindows.GetCount() == 0)) { wxTheApp->SetTopWindow(NULL);