Allow registering window, panel and context menu items with callbacks

This commit is contained in:
baldurk
2018-10-23 14:23:12 +01:00
parent 67fc971cd9
commit 94dfb9890b
24 changed files with 963 additions and 67 deletions
+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);
}
%}
///////////////////////////////////////////////////////////////////////////////////////////