X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e0fb15a1c33dce3a1aed3beb59f5471489795067..0c8392cac2d36d0d211432e71d3b24d3d93c22db:/wxPython/src/clip_dnd.i diff --git a/wxPython/src/clip_dnd.i b/wxPython/src/clip_dnd.i index 2efd633649..0fe784009d 100644 --- a/wxPython/src/clip_dnd.i +++ b/wxPython/src/clip_dnd.i @@ -418,12 +418,16 @@ public: void UsePrimarySelection( int primary = FALSE ); }; + +%readonly %{ - // See below in the init function... - wxClipboard* wxPyTheClipboard; +#if 0 +%} +// See also wxPy_ReinitStockObjects in helpers.cpp +extern wxClipboard* wxTheClipboard; +%{ +#endif %} -%readonly -%name(wxTheClipboard) wxClipboard* wxPyTheClipboard; %readwrite //---------------------------------------------------------------------- @@ -674,7 +678,6 @@ public: %init %{ - wxPyTheClipboard = wxTheClipboard; wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");