Function
GObjectsignal_newv
Declaration
guint
g_signal_newv (
const gchar* signal_name,
GType itype,
GSignalFlags signal_flags,
GClosure* class_closure,
GSignalAccumulator accumulator,
gpointer accu_data,
GSignalCMarshaller c_marshaller,
GType return_type,
guint n_params,
GType* param_types
)
Description
Creates a new signal. (This is usually done in the class initializer.)
See g_signal_new()
for details on allowed signal names.
If c_marshaller is NULL
, g_cclosure_marshal_generic()
will be used as
the marshaller for this signal.
This function is not directly available to language bindings |
Parameters
signal_name |
const gchar* |
The name for the signal. |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
itype |
GType |
The type this signal pertains to. It will also pertain to types which are derived from this type. |
|
signal_flags |
GSignalFlags |
A combination of |
|
class_closure |
GClosure |
The closure to invoke on signal emission;
may be |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
accumulator |
GSignalAccumulator |
The accumulator for this signal; may be |
|
The argument can be NULL . | |
accu_data |
gpointer |
User data for the |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
c_marshaller |
GSignalCMarshaller |
The function to translate arrays of
parameter values to signal emissions into C language callback
invocations or |
|
The argument can be NULL . | |
return_type |
GType |
The type of return value, or |
|
n_params |
guint |
The length of |
|
param_types |
An array of GType |
An array of types, one for
each parameter (may be |
|
The argument can be NULL . | |
The length of the array is specified in the n_params argument. | |
The data is owned by the caller of the function. |