X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk_c%2Finit.c;h=32a651bc9c75edf3902ad3a6720bb597fda3794a;hb=bf49e7642027f576716e5742544c282f4396f9ef;hp=a958c4fe1a50f2b53359ce3887b6467d8b422b7e;hpb=55b2aaf973063796a668bc758232141c3d6f5cc9;p=chaz%2Fopenbox diff --git a/otk_c/init.c b/otk_c/init.c index a958c4fe..32a651bc 100644 --- a/otk_c/init.c +++ b/otk_c/init.c @@ -6,6 +6,10 @@ #include "color.h" #include "gccache.h" #include "font.h" +#include "rect.h" +#include "timer.h" +#include "timerqueue.h" +#include "imagecontrol.h" #include #include @@ -19,13 +23,17 @@ static PyMethodDef otk_methods[] = { void initotk(char *display) { + OtkRect_Type.ob_type = &PyType_Type; OtkDisplay_Type.ob_type = &PyType_Type; OtkScreenInfo_Type.ob_type = &PyType_Type; OtkColor_Type.ob_type = &PyType_Type; OtkFont_Type.ob_type = &PyType_Type; + OtkTimer_Type.ob_type = &PyType_Type; + OtkImageControl_Type.ob_type = &PyType_Type; Py_InitModule("otk", otk_methods); + OtkTimerQueue_Initialize(); OtkDisplay_Initialize(display); assert(OBDisplay); OtkGCCache_Initialize();