[glib] docs: Rename a parameter in a GObject how-to example
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] docs: Rename a parameter in a GObject how-to example
- Date: Fri, 21 Aug 2015 14:16:51 +0000 (UTC)
commit 01962b4dd1f3ef15e1412a2d1e21ce8e6e68bd1d
Author: Philip Withnall <philip withnall collabora co uk>
Date: Fri Feb 20 13:15:15 2015 +0000
docs: Rename a parameter in a GObject how-to example
Make it obvious the parameter is not related to AClass.
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 15cdba2..f93febd 100644
--- a/docs/reference/gobject/tut_howto.xml
+++ b/docs/reference/gobject/tut_howto.xml
@@ -781,7 +781,7 @@ maman_bar_subtype_class_init (MamanBarSubTypeClass *klass)
family of macros, for instance:
<informalexample><programlisting>
static void
-b_method_to_call (B *obj, int a)
+b_method_to_call (B *obj, gint some_param)
{
/* do stuff before chain up */
@@ -790,7 +790,7 @@ b_method_to_call (B *obj, int a)
*
* remember the explicit cast to AClass*
*/
- A_CLASS (b_parent_class)->method_to_call (obj, a);
+ A_CLASS (b_parent_class)->method_to_call (obj, some_param);
/* do stuff after chain up */
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]