summaryrefslogtreecommitdiff
path: root/src/python_client.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-24 19:20:17 +0000
committerDana Jansens <danakj@orodu.net>2002-12-24 19:20:17 +0000
commit2e273ae3ac020cc6a43c37942089b3eb7d214102 (patch)
treec602c3dfac23d6f9aaf414a1129b9579318d8a06 /src/python_client.cc
parentfe55bb846db1933d8d6f023236298940cab441f8 (diff)
removing old python bullshit
Diffstat (limited to 'src/python_client.cc')
-rw-r--r--src/python_client.cc60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/python_client.cc b/src/python_client.cc
deleted file mode 100644
index 86c738d9..00000000
--- a/src/python_client.cc
+++ /dev/null
@@ -1,60 +0,0 @@
-// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
-
-#ifdef HAVE_CONFIG_H
-# include "../config.h"
-#endif
-
-#include "python_client.hh"
-#include "openbox.hh"
-
-namespace ob {
-
-extern "C" {
-
-PyObject *getWindow(PyObject* self, PyObject* args)
-{
- if (!PyArg_ParseTuple(args, ":getWindow"))
- return NULL;
- return PyLong_FromLong(((PyClientObject*)self)->client->window());
-}
-
-
-
-static PyMethodDef attr_methods[] = {
- {"getWindow", (PyCFunction)getWindow, METH_VARARGS,
- "Return the window id."},
- {NULL, NULL, 0, NULL} /* sentinel */
-};
-
-static PyObject *getattr(PyObject *obj, char *name)
-{
- return Py_FindMethod(attr_methods, obj, name);
-}
-
-
-
-static void client_dealloc(PyObject* self)
-{
- PyObject_Del(self);
-}
-
-PyTypeObject PyClient_Type = {
- PyObject_HEAD_INIT(NULL)
- 0,
- "Client",
- sizeof(PyClientObject),
- 0,
- client_dealloc, /*tp_dealloc*/
- 0, /*tp_print*/
- getattr, /*tp_getattr*/
- 0, /*tp_setattr*/
- 0, /*tp_compare*/
- 0, /*tp_repr*/
- 0, /*tp_as_number*/
- 0, /*tp_as_sequence*/
- 0, /*tp_as_mapping*/
- 0, /*tp_hash */
-};
-
-}
-}