Re: g_signal_emitv -- where is it used in application code?



On Fri, 2017-09-15 at 12:25 +0100, Emmanuele Bassi wrote:
The g_signal_emitv() function is the vector-based function for
emitting signals in language bindings.

The variadic argument version is a C convenience function, as
functions with variadic arguments are not introspectable.

This is a typical pattern for any GObject-based library; for every
variadic argument function there should be a vector-based one that
can
be used by language bindings.

Ciao,
 Emmanuele.

When I provide a Nim version of g_signal_emitv() -- how could I test
it? I am still not aware of a (small) example in any language (C,
Python, Ruby, ...) where it is used.

With Google I found the Perl glue code, but still no test.

https://github.com/GNOME/perl-Glib/blob/master/GSignal.xs


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