]> Dogcows Code - chaz/openbox/blobdiff - otk_c/display.c
shit to init the module
[chaz/openbox] / otk_c / display.c
index 5efe71975cbee4fe91f615535fa6855456d2b12f..016aa9487fcd257dad2656a74908ea8583884cb5 100644 (file)
@@ -126,6 +126,8 @@ line argument.\n\n"));
   self->screenInfoList = PyList_New(ScreenCount(self->display));
   for (i = 0; i < ScreenCount(self->display); ++i)
     PyList_SetItem(self->screenInfoList, i, OtkScreenInfo_New(i));
+
+  Py_INCREF(OBDisplay); // make sure it stays around!!
 }
 
 void OtkDisplay_Grab(OtkDisplay *self)
This page took 0.019265 seconds and 4 git commands to generate.