updated wrappers
This commit is contained in:
parent
1baea880f4
commit
0b12453cf6
2 changed files with 17 additions and 19 deletions
|
@ -29,6 +29,8 @@ except AttributeError:
|
|||
|
||||
Openbox_instance = _openbox.Openbox_instance
|
||||
|
||||
OBDisplay_display = _openbox.OBDisplay_display
|
||||
|
||||
class OBDisplay(_object):
|
||||
__swig_setmethods__ = {}
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, OBDisplay, name, value)
|
||||
|
@ -80,7 +82,6 @@ class OBDisplayPtr(OBDisplay):
|
|||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = OBDisplay
|
||||
_openbox.OBDisplay_swigregister(OBDisplayPtr)
|
||||
cvar = _openbox.cvar
|
||||
OBDisplay_initialize = _openbox.OBDisplay_initialize
|
||||
|
||||
OBDisplay_destroy = _openbox.OBDisplay_destroy
|
||||
|
@ -432,6 +433,7 @@ class OtkEventHandlerPtr(OtkEventHandler):
|
|||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = OtkEventHandler
|
||||
_openbox.OtkEventHandler_swigregister(OtkEventHandlerPtr)
|
||||
cvar = _openbox.cvar
|
||||
BSENTINEL = cvar.BSENTINEL
|
||||
|
||||
class OtkEventDispatcher(_object):
|
||||
|
|
|
@ -882,6 +882,9 @@ void python_callback(PyObject *func, KeyData *data)
|
|||
|
||||
#include <iterator>
|
||||
|
||||
|
||||
Display *OBDisplay_display() { return otk::OBDisplay::display; }
|
||||
|
||||
ob::OBClient *ob_OBScreen_client(ob::OBScreen *self,int i){
|
||||
if (i >= (int)self->clients.size())
|
||||
return NULL;
|
||||
|
@ -909,24 +912,17 @@ static PyObject *_wrap_Openbox_instance(PyObject *self, PyObject *args) {
|
|||
}
|
||||
|
||||
|
||||
static int _wrap_OBDisplay_display_set(PyObject *_val) {
|
||||
{
|
||||
void *temp;
|
||||
if ((SWIG_ConvertPtr(_val,(void **) &temp, SWIGTYPE_p_Display, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) {
|
||||
PyErr_SetString(PyExc_TypeError, "C variable 'otk::OBDisplay::display (Display *)'");
|
||||
return 1;
|
||||
}
|
||||
otk::OBDisplay::display = (Display *) temp;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_OBDisplay_display_get() {
|
||||
PyObject *pyobj;
|
||||
static PyObject *_wrap_OBDisplay_display(PyObject *self, PyObject *args) {
|
||||
PyObject *resultobj;
|
||||
Display *result;
|
||||
|
||||
pyobj = SWIG_NewPointerObj((void *) otk::OBDisplay::display, SWIGTYPE_p_Display, 0);
|
||||
return pyobj;
|
||||
if(!PyArg_ParseTuple(args,(char *)":OBDisplay_display")) goto fail;
|
||||
result = (Display *)OBDisplay_display();
|
||||
|
||||
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_Display, 0);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
|
@ -8105,6 +8101,7 @@ static PyObject *_wrap_send_client_msg(PyObject *self, PyObject *args) {
|
|||
|
||||
static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Openbox_instance", _wrap_Openbox_instance, METH_VARARGS },
|
||||
{ (char *)"OBDisplay_display", _wrap_OBDisplay_display, METH_VARARGS },
|
||||
{ (char *)"OBDisplay_initialize", _wrap_OBDisplay_initialize, METH_VARARGS },
|
||||
{ (char *)"OBDisplay_destroy", _wrap_OBDisplay_destroy, METH_VARARGS },
|
||||
{ (char *)"OBDisplay_gcCache", _wrap_OBDisplay_gcCache, METH_VARARGS },
|
||||
|
@ -9117,7 +9114,6 @@ SWIGEXPORT(void) SWIG_init(void) {
|
|||
SWIG_InstallConstants(d,swig_const_table);
|
||||
|
||||
PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
|
||||
SWIG_addvarlink(SWIG_globals,(char*)"OBDisplay_display",_wrap_OBDisplay_display_get, _wrap_OBDisplay_display_set);
|
||||
SWIG_addvarlink(SWIG_globals,(char*)"BSENTINEL",_wrap_BSENTINEL_get, _wrap_BSENTINEL_set);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue