all repos — openbox @ 261034b354cc3571ef59d0b13bdbdecbb2e06075

openbox fork - make it a bit more like ryudo

wrapper updates
Dana Jansens danakj@orodu.net
commit

261034b354cc3571ef59d0b13bdbdecbb2e06075

parent

dc2f9ddc6659eea0e9e651c811a6baa7b53019d8

2 files changed, 33 insertions(+), 6 deletions(-)

jump to
M src/openbox.pysrc/openbox.py

@@ -379,6 +379,8 @@ itostring_unsigned = _openbox.itostring_unsigned

itostring = _openbox.itostring +putenv = _openbox.putenv + basename = _openbox.basename class OtkEventHandler(_object):
M src/openbox_wrap.ccsrc/openbox_wrap.cc

@@ -1,6 +1,6 @@

/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.17u-20021226-0459 + * Version 1.3.17u-20021128-1508 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make

@@ -791,19 +791,19 @@

#include <string> -static PyObject* SwigInt_FromBool(bool b) { +PyObject* SwigInt_FromBool(bool b) { return PyInt_FromLong(b ? 1L : 0L); } -static double SwigNumber_Check(PyObject* o) { +double SwigNumber_Check(PyObject* o) { return PyFloat_Check(o) || PyInt_Check(o); } -static double SwigNumber_AsDouble(PyObject* o) { +double SwigNumber_AsDouble(PyObject* o) { return (PyFloat_Check(o) ? PyFloat_AsDouble(o) : double(PyInt_AsLong(o))); } -static PyObject* SwigString_FromString(const std::string& s) { +PyObject* SwigString_FromString(const std::string& s) { return PyString_FromString(s.c_str()); } -static std::string SwigString_AsString(PyObject* o) { +std::string SwigString_AsString(PyObject* o) { return std::string(PyString_AsString(o)); }

@@ -3954,6 +3954,30 @@

{ resultobj = PyString_FromString((&result)->c_str()); } + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_putenv(PyObject *self, PyObject *args) { + PyObject *resultobj; + std::string *arg1 = 0 ; + std::string temp1 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:putenv",&obj0)) goto fail; + { + if (PyString_Check(obj0)) { + temp1 = std::string(PyString_AsString(obj0)); + arg1 = &temp1; + }else { + SWIG_exception(SWIG_TypeError, "string expected"); + } + } + otk::putenv((std::string const &)*arg1); + + Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL;

@@ -8192,6 +8216,7 @@ { (char *)"itostring_unsigned_long", _wrap_itostring_unsigned_long, METH_VARARGS },

{ (char *)"itostring_long", _wrap_itostring_long, METH_VARARGS }, { (char *)"itostring_unsigned", _wrap_itostring_unsigned, METH_VARARGS }, { (char *)"itostring", _wrap_itostring, METH_VARARGS }, + { (char *)"putenv", _wrap_putenv, METH_VARARGS }, { (char *)"basename", _wrap_basename, METH_VARARGS }, { (char *)"OtkEventHandler_handle", _wrap_OtkEventHandler_handle, METH_VARARGS }, { (char *)"OtkEventHandler_keyPressHandler", _wrap_OtkEventHandler_keyPressHandler, METH_VARARGS },