Support default values for parameters
Submitted by Guillaume Desmottes
Link to original bug (#640812)
Description
When you have an _async method using the GIO async pattern, you can't pass None as callback, even if you annotate it with allow-none.
** (process:25416): CRITICAL **: g_arg_info_is_caller_allocates: assertion `info != NULL' failed
** (process:25416): CRITICAL **: g_arg_info_is_caller_allocates: assertion `info != NULL' failed
** (process:25416): CRITICAL **: g_arg_info_is_caller_allocates: assertion `info != NULL' failed
Traceback (most recent call last):
File "./text-handler.py", line 44, in handle_channels_cb
display_pending_messages(channel)
File "./text-handler.py", line 32, in display_pending_messages
channel.ack_messages_async(messages, None, None)
File "/usr/lib/pymodules/python2.6/gtk-2.0/gi/types.py", line 40, in function
return info.invoke(*args)
TypeError: Error invoking TelepathyGLib.ack_messages_async: Invalid callback given for argument callback