]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_power.i
Apply parts of patch #1719888 to fix compilation on Mac and with
[wxWidgets.git] / wxPython / src / _power.i
index cbc3bcfa4f818c63cca037363aeb6ee0dd1850ec..cb8deace69c1b0d5c2e5e54e6bf758310006498c 100644 (file)
 //---------------------------------------------------------------------------
 %newgroup
 
+
 %{
 #ifndef wxHAS_POWER_EVENTS
 // Dummy class and other definitions for platforms that don't have them
 
-class wxPowerEvent : public wxEvent
-{
-public:
-    wxPowerEvent(wxEventType evtType) : wxEvent(wxID_NONE, evtType) {}
-    void Veto() {}
-    bool IsVetoed() const { return false; }
-
-    virtual wxEvent *Clone() const { return new wxPowerEvent(*this); }
-};
-
+// See wxPython_int.h for wxPowerEvent
+    
 enum {
     wxEVT_POWER_SUSPENDING,
     wxEVT_POWER_SUSPENDED,