more typesafety
This commit is contained in:
parent
b12b1cb784
commit
711d4a342f
2 changed files with 2 additions and 2 deletions
|
@ -171,7 +171,7 @@ public:
|
|||
//! Returns the mouse cursors used throughout Openbox
|
||||
inline const Cursors &cursors() const { return _cursors; }
|
||||
|
||||
inline PyObject *pyclients() const { return _pyclients; }
|
||||
inline PyDictObject *pyclients() const { return _pyclients; }
|
||||
|
||||
//! The main function of the Openbox class
|
||||
/*!
|
||||
|
|
|
@ -15,7 +15,7 @@ PyObject *get_client_dict(PyObject* self, PyObject* args)
|
|||
{
|
||||
if (!PyArg_ParseTuple(args, ":get_client_dict"))
|
||||
return NULL;
|
||||
return PyDictProxy_New(Openbox::instance->pyclients());
|
||||
return PyDictProxy_New((PyObject*)Openbox::instance->pyclients());
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue