From 42baaa88cd20adcce8767fb124682b1b3bd8b0ec Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 20 Feb 2015 13:16:08 +0000 Subject: [PATCH] docs: Use generic marshallers in GObject how-to examples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They’re the new vogue for handling signals. https://bugzilla.gnome.org/show_bug.cgi?id=744060 --- docs/reference/gobject/tut_howto.xml | 4 ++-- 1 file 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)); 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 */);