Creates a new signal.
(This is usually done in the class initializer.)
A signal name consists of segments consisting of ASCII letters and digits, separated by either the `-` or `_` character. The first character of a signal name must be a letter. Names which violate these rules lead to undefined behaviour. These are the same rules as for property naming ( see ParamSpec.internal).
When registering a signal and looking up a signal, either separator can be used, but they cannot be mixed. Using `-` is considerably more efficient. Using `_` is discouraged.
If 0 is used for
class_offset subclasses cannot override the class handler in their class_init method by doing super_class->
signal_handler = my_signal_handler. Instead they will have to use
c_marshaller is null,
g_cclosure_marshal_generic will be used as the marshaller
for this signal. In some simple cases, @new will use a more optimized c_marshaller and va_marshaller for the
signal instead of
c_marshaller is non-null, you need to also specify a va_marshaller using
g_signal_set_va_marshaller or the generic va_marshaller will be used.
the name for the signal
the type this signal pertains to. It will also pertain to types which are derived from this type.
a combination of SignalFlags specifying detail of when the default handler is to be invoked. You should at least specify g_signal_run_first or g_signal_run_last.
The offset of the function pointer in the class structure for this type. Used to invoke a class method generically. Pass 0 to not associate a class method slot with this signal.
the accumulator for this signal; may be null.
the function to translate arrays of parameter values to signal emissions into C language callback invocations or null.
the type of return value, or NONE for a signal without a return value.
the number of parameter types to follow.
a list of types, one for each parameter.
user data for the
the signal id