summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gobject/pygiochannel.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gobject/pygiochannel.c b/gobject/pygiochannel.c
index c6e6c52..d161c10 100644
--- a/gobject/pygiochannel.c
+++ b/gobject/pygiochannel.c
@@ -443,9 +443,10 @@ pyg_iowatch_marshal(GIOChannel *source,
pyg_block_threads();
if (data->user_data)
ret = PyObject_CallFunction(data->callback, "OiO", data->iochannel,
- data->user_data);
+ condition, data->user_data);
else
- ret = PyObject_CallFunction(data->callback, "Oi", data->iochannel);
+ ret = PyObject_CallFunction(data->callback, "Oi", data->iochannel,
+ condition);
if (!ret) {
PyErr_Print();