summaryrefslogtreecommitdiff
path: root/docs/reference/gobject/tut_howto.xml
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2015-02-20 13:16:08 +0000
committerPhilip Withnall <philip.withnall@collabora.co.uk>2015-08-21 15:15:53 +0100
commit42baaa88cd20adcce8767fb124682b1b3bd8b0ec (patch)
treefc366a821fe226dd3c2f53122238ff155b011488 /docs/reference/gobject/tut_howto.xml
parent01962b4dd1f3ef15e1412a2d1e21ce8e6e68bd1d (diff)
downloadglib-42baaa88cd20adcce8767fb124682b1b3bd8b0ec.tar.gz
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
Diffstat (limited to 'docs/reference/gobject/tut_howto.xml')
-rw-r--r--docs/reference/gobject/tut_howto.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/reference/gobject/tut_howto.xml b/docs/reference/gobject/tut_howto.xml
index f93febdd9..2bb1264e0 100644
--- a/docs/reference/gobject/tut_howto.xml
+++ b/docs/reference/gobject/tut_howto.xml
@@ -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 */);