From 0820c5100d7ea8daed00e7b1bf183edc9414728f Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 21 Dec 2002 12:39:49 +0000 Subject: make rect a proper pyobject. use "typesafety" --- otk_c/screeninfo.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'otk_c/screeninfo.h') 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; -- cgit v1.2.3