]> Dogcows Code - chaz/openbox/blobdiff - otk_c/screeninfo.h
fix \'s
[chaz/openbox] / otk_c / screeninfo.h
index 5114a37cfb4e12aa4e0e11c08747d1ea6428f6b2..70ce7d3acba75d32d2d0219c9690fcaf706cc257 100644 (file)
@@ -1,11 +1,16 @@
-// -*- mode: C; indent-tabs-mode: nil; -*-
+// -*- mode: C; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 #ifndef   __screeninfo_h
 #define   __screeninfo_h
 
 #include <X11/Xlib.h>
 #include <Python.h>
 
+extern PyTypeObject OtkScreenInfo_Type;
+
+struct OtkRect;
+
 typedef struct OtkScreenInfo {
+  PyObject_HEAD
   int screen;
   Window root_window;
 
@@ -13,10 +18,10 @@ typedef struct OtkScreenInfo {
   Visual *visual;
   Colormap colormap;
 
-  PyObject *display_string; // PyStringObject
-  PyObject *rect; // OtkRect
+  PyStringObject *display_string;
+  struct OtkRect *rect; // OtkRect
 #ifdef XINERAMA
-  PyObject *xinerama_areas; // PyListObject[OtkRect]
+  PyListObject *xinerama_areas; // holds OtkRect's
   Bool xinerama_active;
 #endif
 } OtkScreenInfo;
This page took 0.020635 seconds and 4 git commands to generate.