Mercurial > pidgin
view finch/libgnt/pygnt/gntmodule.c @ 19582:d4fb44035799
merge of '1bc4d7f1a38917e6d2bf837a660f5f498a29ea0c'
and 'dd0060c3e748fd6d877ca32879c785c9bdb434fc'
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Mon, 03 Sep 2007 02:19:23 +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"); } }