diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-20 15:38:49 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-20 15:38:49 +0000 |
| commit | 68194ce957db36ead19a39fdc7636a220befafe9 (patch) | |
| tree | c405d332e6189babdb2ffc055a075cb718176f17 /src/python_client.cc | |
| parent | 06de24ec6666578759eff2b348e50f5e8e20f3bd (diff) | |
update to cleaned up otk api
Diffstat (limited to 'src/python_client.cc')
| -rw-r--r-- | src/python_client.cc | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/python_client.cc b/src/python_client.cc index 5ab86b6c..86c738d9 100644 --- a/src/python_client.cc +++ b/src/python_client.cc @@ -11,26 +11,17 @@ namespace ob { extern "C" { -PyObject *get_client_dict(PyObject* self, PyObject* args) -{ - if (!PyArg_ParseTuple(args, ":get_client_dict")) - return NULL; - return PyDictProxy_New((PyObject*)Openbox::instance->pyclients()); -} - - - PyObject *getWindow(PyObject* self, PyObject* args) { if (!PyArg_ParseTuple(args, ":getWindow")) return NULL; - return PyLong_FromLong(((PyClientObject*)self)->window); + return PyLong_FromLong(((PyClientObject*)self)->client->window()); } static PyMethodDef attr_methods[] = { - {"getWindow", getWindow, METH_VARARGS, + {"getWindow", (PyCFunction)getWindow, METH_VARARGS, "Return the window id."}, {NULL, NULL, 0, NULL} /* sentinel */ }; |
