view finch/libgnt/pygnt/gntmodule.c @ 19398:39248f5b53ad

Input handlers are unsigned integers. So set them to 0 instead of -1 after removing it. This is a semi-Dj vu of 979d5b68c76417625271f63b5c4fcff37ec38019
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 24 Aug 2007 02:50:55 +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");
    }
}