From: Dana Jansens Date: Fri, 20 Dec 2002 14:46:22 +0000 (+0000) Subject: be a little more typesafe X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=b12b1cb7848d590be57281fa6ee68b9f05a57c30;p=chaz%2Fopenbox be a little more typesafe --- diff --git a/src/openbox.cc b/src/openbox.cc index f16d3464..bb0743c0 100644 --- a/src/openbox.cc +++ b/src/openbox.cc @@ -91,7 +91,7 @@ Openbox::Openbox(int argc, char **argv) _doshutdown = false; _rcfilepath = otk::expandTilde("~/.openbox/rc3"); - _pyclients = PyDict_New(); + _pyclients = (PyDictObject*) PyDict_New(); assert(_pyclients); parseCommandLine(argc, argv); @@ -282,7 +282,8 @@ void Openbox::addClient(Window window, OBClient *client) PyClientObject* pyclient = PyObject_New(PyClientObject, &PyClient_Type); pyclient->window = window; pyclient->client = client; - PyDict_SetItem(_pyclients, PyLong_FromLong(window), (PyObject*)pyclient); + PyDict_SetItem((PyObject*)_pyclients, PyLong_FromLong(window), + (PyObject*)pyclient); } diff --git a/src/openbox.hh b/src/openbox.hh index 83891828..2c26aaa1 100644 --- a/src/openbox.hh +++ b/src/openbox.hh @@ -94,7 +94,7 @@ private: //! A list of all managed clients ClientMap _clients; - PyObject *_pyclients; // PyDictObject + PyDictObject *_pyclients; //! A list of all the managed screens ScreenList _screens;