X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk_c%2Finit.c;h=32a651bc9c75edf3902ad3a6720bb597fda3794a;hb=951ccd15a93c6fe1c0910181781b9a87effd195a;hp=5f576ac39b74b4637e114a4d63277df7c4967cf8;hpb=cca7a6762d273815947bd5c7cc58ab6713693e8e;p=chaz%2Fopenbox diff --git a/otk_c/init.c b/otk_c/init.c index 5f576ac3..32a651bc 100644 --- a/otk_c/init.c +++ b/otk_c/init.c @@ -5,6 +5,11 @@ #include "screeninfo.h" #include "color.h" #include "gccache.h" +#include "font.h" +#include "rect.h" +#include "timer.h" +#include "timerqueue.h" +#include "imagecontrol.h" #include #include @@ -18,13 +23,19 @@ 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(); + OtkFont_Initialize(); }