]> icculus.org git repositories - mikachu/openbox.git/blob - otk_c/init.c
add font
[mikachu/openbox.git] / otk_c / init.c
1 // -*- mode: C; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2
3 #include "../config.h"
4 #include "display.h"
5 #include "screeninfo.h"
6 #include "color.h"
7 #include "gccache.h"
8 #include "font.h"
9
10 #include <X11/Xlib.h>
11 #include <Python.h>
12
13 static PyMethodDef otk_methods[] = {
14 //  {"new_noddy", noddy_new_noddy, METH_VARARGS,
15 //   "Create a new Noddy object."},
16
17   {NULL, NULL, 0, NULL}
18 };
19
20 void initotk(char *display)
21 {
22   OtkDisplay_Type.ob_type = &PyType_Type;
23   OtkScreenInfo_Type.ob_type = &PyType_Type;
24   OtkColor_Type.ob_type = &PyType_Type;
25   OtkFont_Type.ob_type = &PyType_Type;
26
27   Py_InitModule("otk", otk_methods);
28
29   OtkDisplay_Initialize(display);
30   assert(OBDisplay);
31   OtkGCCache_Initialize();
32   OtkFont_Initialize();
33 }