be a little more typesafe
This commit is contained in:
parent
82f4efb4e2
commit
b12b1cb784
2 changed files with 4 additions and 3 deletions
|
@ -91,7 +91,7 @@ Openbox::Openbox(int argc, char **argv)
|
||||||
_doshutdown = false;
|
_doshutdown = false;
|
||||||
_rcfilepath = otk::expandTilde("~/.openbox/rc3");
|
_rcfilepath = otk::expandTilde("~/.openbox/rc3");
|
||||||
|
|
||||||
_pyclients = PyDict_New();
|
_pyclients = (PyDictObject*) PyDict_New();
|
||||||
assert(_pyclients);
|
assert(_pyclients);
|
||||||
|
|
||||||
parseCommandLine(argc, argv);
|
parseCommandLine(argc, argv);
|
||||||
|
@ -282,7 +282,8 @@ void Openbox::addClient(Window window, OBClient *client)
|
||||||
PyClientObject* pyclient = PyObject_New(PyClientObject, &PyClient_Type);
|
PyClientObject* pyclient = PyObject_New(PyClientObject, &PyClient_Type);
|
||||||
pyclient->window = window;
|
pyclient->window = window;
|
||||||
pyclient->client = client;
|
pyclient->client = client;
|
||||||
PyDict_SetItem(_pyclients, PyLong_FromLong(window), (PyObject*)pyclient);
|
PyDict_SetItem((PyObject*)_pyclients, PyLong_FromLong(window),
|
||||||
|
(PyObject*)pyclient);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,7 @@ private:
|
||||||
|
|
||||||
//! A list of all managed clients
|
//! A list of all managed clients
|
||||||
ClientMap _clients;
|
ClientMap _clients;
|
||||||
PyObject *_pyclients; // PyDictObject
|
PyDictObject *_pyclients;
|
||||||
|
|
||||||
//! A list of all the managed screens
|
//! A list of all the managed screens
|
||||||
ScreenList _screens;
|
ScreenList _screens;
|
||||||
|
|
Loading…
Reference in a new issue