mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
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
This commit is contained in:
parent
a76242b35a
commit
01962b4dd1
@ -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 */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user