From e5c5b4bf700f9bf00dd88bd4b6a471ac1ccefaff Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 20 Dec 2002 23:19:07 +0000 Subject: add screeninfo --- otk_c/display.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'otk_c/display.c') diff --git a/otk_c/display.c b/otk_c/display.c index ab193437..85965210 100644 --- a/otk_c/display.c +++ b/otk_c/display.c @@ -1,6 +1,8 @@ // -*- mode: C; indent-tabs-mode: nil; -*- +#include "../config.h" #include "display.h" +#include "screeninfo.h" #include @@ -118,7 +120,7 @@ line argument.\n\n")); // Get information on all the screens which are available. self->screenInfoList = PyList_New(ScreenCount(self->display)); for (i = 0; i < ScreenCount(self->display); ++i) - PyList_Append(self->screenInfoList, OtkScreenInfo_New(i)); + PyList_SetItem(self->screenInfoList, i, OtkScreenInfo_New(i)); self->gccache = OtkGCCache_New(PyList_Size(self->screenInfoList)); -- cgit v1.2.3