[glib] docs: Use generic marshallers in GObject how-to examples
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] docs: Use generic marshallers in GObject how-to examples
- Date: Fri, 21 Aug 2015 14:16:56 +0000 (UTC)
commit 42baaa88cd20adcce8767fb124682b1b3bd8b0ec
Author: Philip Withnall <philip withnall collabora co uk>
Date: Fri Feb 20 13:16:08 2015 +0000
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
docs/reference/gobject/tut_howto.xml | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/docs/reference/gobject/tut_howto.xml b/docs/reference/gobject/tut_howto.xml
index f93febd..2bb1264 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 */);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]