X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a72f4631fe5ab7ebeefdacf8ec9c826ea962133f..bc50a2ae95f2ab36b16ceedc7902a9cbfb2f70ea:/wxPython/src/_display.i diff --git a/wxPython/src/_display.i b/wxPython/src/_display.i index 938c85ada3..6cbc1cda98 100644 --- a/wxPython/src/_display.i +++ b/wxPython/src/_display.i @@ -91,7 +91,7 @@ const wxVideoMode wxDefaultVideoMode; #include #include -WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes); + WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes); #include "wx/arrimpl.cpp" WX_DEFINE_OBJARRAY(wxArrayVideoModes); const wxVideoMode wxDefaultVideoMode; @@ -159,14 +159,8 @@ doesn't belong to any display", ""); DocStr(GetFromWindow, "Find the display where the given window lies, return wx.NOT_FOUND if it is not shown at all.", ""); -#ifdef __WXMSW__ static int GetFromWindow(wxWindow *window); -#else - %extend { - static int GetFromWindow(wxWindow *window) - { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } - } -#endif + DocDeclStr( virtual bool , IsOk() const, @@ -206,7 +200,7 @@ function is not supported at all on this platform.", ""); PyObject* GetModes(const wxVideoMode& mode = wxDefaultVideoMode) { PyObject* pyList = NULL; wxArrayVideoModes arr = self->GetModes(mode); - bool blocked = wxPyBeginBlockThreads(); + wxPyBlock_t blocked = wxPyBeginBlockThreads(); pyList = PyList_New(0); for (int i=0; i < arr.GetCount(); i++) { wxVideoMode* m = new wxVideoMode(arr.Item(i));