Allow registering window, panel and context menu items with callbacks

This commit is contained in:
baldurk committed 2018-10-23 14:23:12 +01:00
1 parent 67fc971cd9
commit 94dfb9890b
24 files changed
+963 -67

No files matched your search

+9
View File
@@ -332,6 +332,15 @@ PyObject *PassObjectToPython(const char *type, void *obj)
return SWIG_InternalNewPointerObj(obj, t, 0);
}
PyObject *PassNewObjectToPython(const char *type, void *obj)
{
swig_type_info *t = SWIG_TypeQuery(type);
if(t == NULL)
return NULL;
return SWIG_InternalNewPointerObj(obj, t, SWIG_POINTER_OWN);
}
%}
///////////////////////////////////////////////////////////////////////////////////////////