]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/PlatWX.cpp
Compilation fix for old OS/2 compilers.
[wxWidgets.git] / src / stc / PlatWX.cpp
index b3232e6aa575dc3bed12e58b861df13b4d53d49f..8408f88a72b0cf311b2772b1696ac3cc06a963bc 100644 (file)
 #include "wx/stc/stc.h"
 
 
 #include "wx/stc/stc.h"
 
 
-#ifdef __WXGTK__
-#include <gtk/gtk.h>
-#endif
-
-
 Point Point::FromLong(long lpoint) {
     return Point(lpoint & 0xFFFF, lpoint >> 16);
 }
 Point Point::FromLong(long lpoint) {
     return Point(lpoint & 0xFFFF, lpoint >> 16);
 }
@@ -806,6 +801,14 @@ public:
         event.Skip();
     }
 
         event.Skip();
     }
 
+#ifdef __WXMAC__
+    virtual bool Show(bool show = true) {
+        bool rv = wxWindow::Show(show);
+        GetParent()->Refresh(false);
+        return rv;
+    }
+#endif
+    
     void OnActivate(wxListEvent& WXUNUSED(event)) {
         doubleClickAction(doubleClickActionData);
     }
     void OnActivate(wxListEvent& WXUNUSED(event)) {
         doubleClickAction(doubleClickActionData);
     }