summaryrefslogtreecommitdiff
path: root/src/openbox_wrap.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-27 08:39:53 +0000
committerDana Jansens <danakj@orodu.net>2002-12-27 08:39:53 +0000
commitc645416035d64cc959d1dd0e937b31b07489e54b (patch)
treec8a3487cefe3c97e66c641ccc9cc51a713c3fc6a /src/openbox_wrap.cc
parent2c908c308df721762fef7c5dca0fcc465f474fd4 (diff)
add an unregister_all for python callbacks
Diffstat (limited to 'src/openbox_wrap.cc')
-rw-r--r--src/openbox_wrap.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/openbox_wrap.cc b/src/openbox_wrap.cc
index 5cf5d8ea..7f0d015f 100644
--- a/src/openbox_wrap.cc
+++ b/src/openbox_wrap.cc
@@ -2513,6 +2513,21 @@ static PyObject *_wrap_unregister(PyObject *self, PyObject *args) {
}
+static PyObject *_wrap_unregister_all(PyObject *self, PyObject *args) {
+ PyObject *resultobj;
+ int arg1 ;
+ bool result;
+
+ if(!PyArg_ParseTuple(args,(char *)"i:unregister_all",&arg1)) goto fail;
+ result = (bool)ob::python_unregister_all(arg1);
+
+ resultobj = PyInt_FromLong((long)result);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
static PyMethodDef SwigMethods[] = {
{ (char *)"Openbox_instance", _wrap_Openbox_instance, METH_VARARGS },
{ (char *)"Cursors_session_set", _wrap_Cursors_session_set, METH_VARARGS },
@@ -2609,6 +2624,7 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"register", _wrap_register, METH_VARARGS },
{ (char *)"preregister", _wrap_preregister, METH_VARARGS },
{ (char *)"unregister", _wrap_unregister, METH_VARARGS },
+ { (char *)"unregister_all", _wrap_unregister_all, METH_VARARGS },
{ NULL, NULL }
};