]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/gauge.cpp
added wxUSE_MDI (but forgot to commit before)
[wxWidgets.git] / src / motif / gauge.cpp
index 6a7f0fb2bac0f6a1647d1aa1f806843cdff628d6..e1e3df36018c34667fe007fe041cf868942a1b2f 100644 (file)
@@ -9,12 +9,20 @@
 // Licence:    wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "gauge.h"
 #endif
 
-#ifdef __VMS__
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#ifdef __VMS
 #include <wx/vms_x_fix.h>
+#undef XtDisplay
+#undef XtScreen
+#undef XtWindow
+#undef XtIsRealized
+#undef XtParent
 #endif
 
 # include "wx/gauge.h"
@@ -136,7 +144,6 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID id,
 
     ChangeFont(FALSE);
 
-    SetCanAddEventHandler(TRUE);
     AttachWidget (parent, m_mainWidget, (WXWidget) NULL, x, y,
                   best.x, best.y);