diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-07 19:24:38 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-07 19:24:38 +0000 |
| commit | a2de94e91e1c0e7775c97745ae11d14e5c5f5659 (patch) | |
| tree | fd69635008f02d4abad11c8f95fb1baf4db0dda3 /otk/otk_wrap.cc | |
| parent | 6062fe404ce5f2505494132d5454370d696625ca (diff) | |
in synch mode, chew up 100% cpu, cuz we cant select on the display's fd
Diffstat (limited to 'otk/otk_wrap.cc')
| -rw-r--r-- | otk/otk_wrap.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/otk/otk_wrap.cc b/otk/otk_wrap.cc index 8acf2c99..57a87fa6 100644 --- a/otk/otk_wrap.cc +++ b/otk/otk_wrap.cc @@ -12501,11 +12501,17 @@ static PyObject *_wrap_delete_OBTimerQueueManager(PyObject *self, PyObject *args static PyObject *_wrap_OBTimerQueueManager_fire(PyObject *self, PyObject *args) { PyObject *resultobj; otk::OBTimerQueueManager *arg1 = (otk::OBTimerQueueManager *) 0 ; + bool arg2 = (bool) true ; PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; - if(!PyArg_ParseTuple(args,(char *)"O:OBTimerQueueManager_fire",&obj0)) goto fail; + if(!PyArg_ParseTuple(args,(char *)"O|O:OBTimerQueueManager_fire",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_otk__OBTimerQueueManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - (arg1)->fire(); + if (obj1) { + arg2 = (bool) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + } + (arg1)->fire(arg2); Py_INCREF(Py_None); resultobj = Py_None; return resultobj; |
