mutter/bindings/python/cluttermodule.c
2006-05-29 08:59:36 +00:00

27 lines
491 B
C

#include <pygobject.h>
/* #include <pygtk/pygtk.h> */
void clutter_register_classes (PyObject *d);
extern PyMethodDef clutter_functions[];
DL_EXPORT (void)
initclutter (void)
{
PyObject *m, *d;
init_pygobject ();
/* init_pygtk(); */
m = Py_InitModule ("clutter", clutter_functions);
d = PyModule_GetDict (m);
clutter_register_classes (d);
if (PyErr_Occurred ())
{
Py_FatalError ("can't initialise module clutter");
}
else
clutter_init(NULL, NULL);
}