Mercurial > pidgin
view finch/libgnt/pygnt/gntmodule.c @ 20700:4b91ac9fa549
propagate from branch 'im.pidgin.pidgin.2.2.1' (head e7d234a12dbb89fdfd195e4597018a80f2c541f5)
to branch 'im.pidgin.pidgin' (head a695ddc8921e9705ecd1e680473d692e73449845)
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 28 Sep 2007 21:49:48 +0000 |
parents | 254823d66aa5 |
children | dc129248eb7c |
line wrap: on
line source
#include <pygobject.h> void gnt_register_classes (PyObject *d); extern PyMethodDef gnt_functions[]; DL_EXPORT(void) initgnt(void) { PyObject *m, *d; init_pygobject (); m = Py_InitModule ("gnt", gnt_functions); d = PyModule_GetDict (m); gnt_register_classes (d); gnt_add_constants(m, "GNT_"); if (PyErr_Occurred ()) { Py_FatalError ("can't initialise module sad"); } }