mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
docs: Use generic marshallers in GObject how-to examples
They’re the new vogue for handling signals. https://bugzilla.gnome.org/show_bug.cgi?id=744060
This commit is contained in:
parent
01962b4dd1
commit
42baaa88cd
@ -1364,12 +1364,12 @@ maman_file_write (file, buffer, strlen (buffer));
|
||||
<informalexample><programlisting>
|
||||
file_signals[CHANGED] =
|
||||
g_signal_newv ("changed",
|
||||
G_TYPE_FROM_CLASS (gobject_class),
|
||||
G_TYPE_FROM_CLASS (object_class),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_NO_RECURSE | G_SIGNAL_NO_HOOKS,
|
||||
NULL /* closure */,
|
||||
NULL /* accumulator */,
|
||||
NULL /* accumulator data */,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
g_cclosure_marshal_generic,
|
||||
G_TYPE_NONE /* return_type */,
|
||||
0 /* n_params */,
|
||||
NULL /* param_types */);
|
||||
|
Loading…
Reference in New Issue
Block a user