]> Dogcows Code - chaz/openbox/commitdiff
be a little more typesafe
authorDana Jansens <danakj@orodu.net>
Fri, 20 Dec 2002 14:46:22 +0000 (14:46 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 20 Dec 2002 14:46:22 +0000 (14:46 +0000)
src/openbox.cc
src/openbox.hh

index f16d3464f0cd9fb5d60769025a9690387f24d673..bb0743c08ab1f19cdd2e40aa6c64e32b693ceb66 100644 (file)
@@ -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);
 }
 
 
index 83891828b5a4303173c509f0d7bccb74520b250e..2c26aaa17e02044a6a7859751529c4a797729e7c 100644 (file)
@@ -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;
This page took 0.0248080000000001 seconds and 4 git commands to generate.