X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/406011a83dd46464cf615fb1988b5f6dee07366d..b4b426fe865087eba1a3ba268bd1f294ac423a96:/wxPython/src/_artprov.i diff --git a/wxPython/src/_artprov.i b/wxPython/src/_artprov.i index add7ff93d5..4d02334a93 100644 --- a/wxPython/src/_artprov.i +++ b/wxPython/src/_artprov.i @@ -245,19 +245,22 @@ public: %pythonAppend wxPyArtProvider "self._setCallbackInfo(self, ArtProvider)" wxPyArtProvider(); + ~wxPyArtProvider(); void _setCallbackInfo(PyObject* self, PyObject* _class); + %disownarg( wxPyArtProvider *provider ); DocDeclStr( static void , PushProvider(wxPyArtProvider *provider), "Add new provider to the top of providers stack.", ""); + %cleardisown( wxPyArtProvider *provider ); DocDeclStr( static bool , PopProvider(), "Remove latest added provider and delete it.", ""); - + %pythonAppend RemoveProvider "args[1].thisown = 1"; DocDeclStr( static bool , RemoveProvider(wxPyArtProvider *provider), "Remove provider. The provider must have been added previously! The @@ -286,6 +289,7 @@ topmost provider if platform_dependent = false", ""); + %pythonAppend Destroy "args[0].thisown = 0" %extend { void Destroy() { delete self; }} };