Fixed gui typesystem to avoid warnings.
Reviewer: Hugo Parente <hugo.lima@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
aedea32f13
commit
d686c68707
2 changed files with 6 additions and 44 deletions
|
|
@ -460,14 +460,9 @@ bool signal_connect(PyObject* source, const char* signal, PyObject* callback)
|
|||
if (pyMethod.isNull())
|
||||
return false;
|
||||
|
||||
Shiboken::AutoDecRef pyArgs(PyList_New(0));
|
||||
Shiboken::AutoDecRef pySignature(PyString_FromString(signal));
|
||||
PyList_Append(pyArgs, source);
|
||||
PyList_Append(pyArgs, pySignature);
|
||||
PyList_Append(pyArgs, callback);
|
||||
Shiboken::AutoDecRef tupleArgs(PyList_AsTuple(pyArgs));
|
||||
|
||||
return PyObject_CallObject(pyMethod, tupleArgs);
|
||||
Shiboken::AutoDecRef pyArgs(PyTuple_Pack(3, source, pySignature.object(), callback));
|
||||
return PyObject_CallObject(pyMethod, pyArgs);
|
||||
}
|
||||
|
||||
PyObject* signal_instance_disconnect(PyObject* self, PyObject* args)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue