]> Dogcows Code - chaz/openbox/commitdiff
more typesafety
authorDana Jansens <danakj@orodu.net>
Fri, 20 Dec 2002 14:47:23 +0000 (14:47 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 20 Dec 2002 14:47:23 +0000 (14:47 +0000)
src/openbox.hh
src/python_client.cc

index 2c26aaa17e02044a6a7859751529c4a797729e7c..e929f1226c89d57aaa9ecdb1b6071a74b31eb4dc 100644 (file)
@@ -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
   /*!
index 3758e427d66b870eb958a3ab75cb9a31bf31b4f3..5ab86b6cdb87f5eba43130d8b2c076bd0e103543 100644 (file)
@@ -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());
 }
 
 
This page took 0.022333 seconds and 4 git commands to generate.