]> Dogcows Code - chaz/openbox/blobdiff - otk_c/screeninfo.h
fix \'s
[chaz/openbox] / otk_c / screeninfo.h
index 3a330f57df7c7c4e38b49ac7e81881eb8166f156..70ce7d3acba75d32d2d0219c9690fcaf706cc257 100644 (file)
@@ -1,4 +1,4 @@
-// -*- mode: C; indent-tabs-mode: nil; -*-
+// -*- mode: C; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 #ifndef   __screeninfo_h
 #define   __screeninfo_h
 
@@ -7,7 +7,10 @@
 
 extern PyTypeObject OtkScreenInfo_Type;
 
+struct OtkRect;
+
 typedef struct OtkScreenInfo {
+  PyObject_HEAD
   int screen;
   Window root_window;
 
@@ -15,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.023324 seconds and 4 git commands to generate.