summaryrefslogtreecommitdiff
path: root/otk_c/screeninfo.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-21 12:39:49 +0000
committerDana Jansens <danakj@orodu.net>2002-12-21 12:39:49 +0000
commit0820c5100d7ea8daed00e7b1bf183edc9414728f (patch)
tree61111c19b7c4e98e3f7a96248cb1371c7d05a18c /otk_c/screeninfo.h
parent9e4d1bbabcabef13b740dd7201e35c3314abfbee (diff)
make rect a proper pyobject. use "typesafety"
Diffstat (limited to 'otk_c/screeninfo.h')
-rw-r--r--otk_c/screeninfo.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/otk_c/screeninfo.h b/otk_c/screeninfo.h
index 3a330f57..1a4aaea0 100644
--- a/otk_c/screeninfo.h
+++ b/otk_c/screeninfo.h
@@ -7,6 +7,8 @@
extern PyTypeObject OtkScreenInfo_Type;
+struct OtkRect;
+
typedef struct OtkScreenInfo {
int screen;
Window root_window;
@@ -15,8 +17,8 @@ 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]
Bool xinerama_active;