diff options
Diffstat (limited to 'Mac/Modules/drag/Dragmodule.c')
-rw-r--r-- | Mac/Modules/drag/Dragmodule.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Mac/Modules/drag/Dragmodule.c b/Mac/Modules/drag/Dragmodule.c index fa6c2d9..3ce19b7 100644 --- a/Mac/Modules/drag/Dragmodule.c +++ b/Mac/Modules/drag/Dragmodule.c @@ -19,6 +19,14 @@ DragInputUPP dragglue_InputUPP; DragDrawingUPP dragglue_DrawingUPP; #endif +#ifdef USE_TOOLBOX_OBJECT_GLUE +extern PyObject *_DragObj_New(DragRef); +extern int _DragObj_Convert(PyObject *, DragRef *); + +#define DragObj_New _DragObj_New +#define DragObj_Convert _DragObj_Convert +#endif + static PyObject *Drag_Error; /* ---------------------- Object type DragObj ----------------------- */ @@ -1040,6 +1048,9 @@ void initDrag() + PyMac_INIT_TOOLBOX_OBJECT_NEW(DragObj_New); + PyMac_INIT_TOOLBOX_OBJECT_CONVERT(DragObj_Convert); + m = Py_InitModule("Drag", Drag_methods); d = PyModule_GetDict(m); |