]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/toplevel.cpp
code changed along msw lines
[wxWidgets.git] / src / motif / toplevel.cpp
index d507efc74b4fb624dc4661df1a348e8320739fd8..6d1b385573c2aa5829bf09bce1951da83c748b77 100644 (file)
 #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 <Xm/Xm.h>
@@ -87,7 +91,7 @@ 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);