Re: parameters of g_signal_emit_by_name

On Sat, Nov 28, 2009 at 01:20:10AM +0100, joël krähemann wrote:
> I'm asking me whether g_signal_emit_by_name with a
> g_cclosure_marshal_VOID__VOID has a need for a trailing NULL as
> parameter. I saw in
> that there's
> no need for it, but in a project called oregano I saw that there was
> NULL as last parameter with the same marshaller.

First, the reference documentation is here:

and it is correct.  Passing NULL as the return value location never
makes sense because
- it is redundant if the signal has no return value
- it is an error to pass NULL if the signal has a return value


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]