add the global display variable
This commit is contained in:
parent
3d012bcb47
commit
63a74632ac
3 changed files with 23 additions and 0 deletions
|
@ -110,6 +110,9 @@ void python_callback(PyObject *func, KeyData *data)
|
||||||
};
|
};
|
||||||
|
|
||||||
%ignore otk::display;
|
%ignore otk::display;
|
||||||
|
%inline %{
|
||||||
|
otk::Display *Display_instance() { return otk::display; }
|
||||||
|
%};
|
||||||
|
|
||||||
%include "../otk/ustring.i"
|
%include "../otk/ustring.i"
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,8 @@ except AttributeError:
|
||||||
|
|
||||||
Openbox_instance = _openbox.Openbox_instance
|
Openbox_instance = _openbox.Openbox_instance
|
||||||
|
|
||||||
|
Display_instance = _openbox.Display_instance
|
||||||
|
|
||||||
class Display(_object):
|
class Display(_object):
|
||||||
__swig_setmethods__ = {}
|
__swig_setmethods__ = {}
|
||||||
__setattr__ = lambda self, name, value: _swig_setattr(self, Display, name, value)
|
__setattr__ = lambda self, name, value: _swig_setattr(self, Display, name, value)
|
||||||
|
|
|
@ -883,6 +883,9 @@ void python_callback(PyObject *func, KeyData *data)
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
|
|
||||||
|
|
||||||
|
otk::Display *Display_instance() { return otk::display; }
|
||||||
|
|
||||||
|
|
||||||
#include "ustring.hh"
|
#include "ustring.hh"
|
||||||
|
|
||||||
ob::Client *ob_Screen_client(ob::Screen *self,int i){
|
ob::Client *ob_Screen_client(ob::Screen *self,int i){
|
||||||
|
@ -912,6 +915,20 @@ static PyObject *_wrap_Openbox_instance(PyObject *self, PyObject *args) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static PyObject *_wrap_Display_instance(PyObject *self, PyObject *args) {
|
||||||
|
PyObject *resultobj;
|
||||||
|
otk::Display *result;
|
||||||
|
|
||||||
|
if(!PyArg_ParseTuple(args,(char *)":Display_instance")) goto fail;
|
||||||
|
result = (otk::Display *)Display_instance();
|
||||||
|
|
||||||
|
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Display, 0);
|
||||||
|
return resultobj;
|
||||||
|
fail:
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static PyObject *_wrap_new_Display(PyObject *self, PyObject *args) {
|
static PyObject *_wrap_new_Display(PyObject *self, PyObject *args) {
|
||||||
PyObject *resultobj;
|
PyObject *resultobj;
|
||||||
otk::Display *result;
|
otk::Display *result;
|
||||||
|
@ -7953,6 +7970,7 @@ static PyObject *_wrap_send_client_msg(PyObject *self, PyObject *args) {
|
||||||
|
|
||||||
static PyMethodDef SwigMethods[] = {
|
static PyMethodDef SwigMethods[] = {
|
||||||
{ (char *)"Openbox_instance", _wrap_Openbox_instance, METH_VARARGS },
|
{ (char *)"Openbox_instance", _wrap_Openbox_instance, METH_VARARGS },
|
||||||
|
{ (char *)"Display_instance", _wrap_Display_instance, METH_VARARGS },
|
||||||
{ (char *)"new_Display", _wrap_new_Display, METH_VARARGS },
|
{ (char *)"new_Display", _wrap_new_Display, METH_VARARGS },
|
||||||
{ (char *)"delete_Display", _wrap_delete_Display, METH_VARARGS },
|
{ (char *)"delete_Display", _wrap_delete_Display, METH_VARARGS },
|
||||||
{ (char *)"Display_gcCache", _wrap_Display_gcCache, METH_VARARGS },
|
{ (char *)"Display_gcCache", _wrap_Display_gcCache, METH_VARARGS },
|
||||||
|
|
Loading…
Reference in a new issue