summaryrefslogtreecommitdiff
path: root/otk_c/display.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-20 23:19:07 +0000
committerDana Jansens <danakj@orodu.net>2002-12-20 23:19:07 +0000
commite5c5b4bf700f9bf00dd88bd4b6a471ac1ccefaff (patch)
tree122c249b6bd50a6695f829e1b559cc8e648f4802 /otk_c/display.c
parent7f111a94d0a0d8a45d318b8a19d0da1097c76d24 (diff)
add screeninfo
Diffstat (limited to 'otk_c/display.c')
-rw-r--r--otk_c/display.c4
1 files changed, 3 insertions, 1 deletions
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 <X11/keysym.h>
@@ -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));