]> git.0d.be Git - empathy.git/blob - python/pyempathygtk/pyempathygtkmodule.c
Add python binding. Fixes bug #457660 (Michael Sheldon).
[empathy.git] / python / pyempathygtk / pyempathygtkmodule.c
1 #include <pygobject.h>
2
3 void empathy_register_classes (PyObject *d);
4 DL_EXPORT(void) initempathygtk(void);
5 extern PyMethodDef empathy_functions[];
6
7 DL_EXPORT(void) initempathygtk(void)
8 {
9         PyObject *m, *d;
10
11         init_pygobject ();
12         
13         m = Py_InitModule ("empathygtk", empathy_functions);
14         d = PyModule_GetDict (m);
15         
16         empathy_register_classes (d);
17         
18         if (PyErr_Occurred ()) {
19                 PyErr_Print();
20                 Py_FatalError ("can't initialise module empathygtk");
21         }
22 }
23