mirror of
https://github.com/brl/mutter.git
synced 2024-12-02 12:50:53 -05:00
27 lines
491 B
C
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);
|
||
|
}
|