From 711d4a342f9f459383ad59ceb624fcb853a41512 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 20 Dec 2002 14:47:23 +0000 Subject: [PATCH] more typesafety --- src/openbox.hh | 2 +- src/python_client.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openbox.hh b/src/openbox.hh index 2c26aaa1..e929f122 100644 --- a/src/openbox.hh +++ b/src/openbox.hh @@ -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 /*! diff --git a/src/python_client.cc b/src/python_client.cc index 3758e427..5ab86b6c 100644 --- a/src/python_client.cc +++ b/src/python_client.cc @@ -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()); } -- 2.39.2