]> Dogcows Code - chaz/openbox/blobdiff - otk_c/init.c
Check for XKB extension
[chaz/openbox] / otk_c / init.c
index 5f576ac39b74b4637e114a4d63277df7c4967cf8..32a651bc9c75edf3902ad3a6720bb597fda3794a 100644 (file)
@@ -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 <X11/Xlib.h>
 #include <Python.h>
@@ -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();
 }
This page took 0.020805 seconds and 4 git commands to generate.