summaryrefslogtreecommitdiff
path: root/docs/reference/gobject/tut_howto.xml
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2010-09-19 22:06:10 +0300
committerStefan Kost <ensonic@users.sf.net>2010-09-19 22:06:10 +0300
commitde432280a0e93aa1ebde4512fc1dd248af88bb32 (patch)
tree34634766cc14172cd172fcc8a80965bf6fcffb2a /docs/reference/gobject/tut_howto.xml
parentaa8c8df44fc1e2b852bb6a0cfb516f976f841de5 (diff)
downloadglib-de432280a0e93aa1ebde4512fc1dd248af88bb32.tar.gz
docs: shorten var name in example
We use 'pspec' instead of 'maman_param_spec' elsewhere too.
Diffstat (limited to 'docs/reference/gobject/tut_howto.xml')
-rw-r--r--docs/reference/gobject/tut_howto.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/reference/gobject/tut_howto.xml b/docs/reference/gobject/tut_howto.xml
index 2706c60a8..aefed0d67 100644
--- a/docs/reference/gobject/tut_howto.xml
+++ b/docs/reference/gobject/tut_howto.xml
@@ -346,19 +346,19 @@ static void
bar_class_init (MamanBarClass *klass)
{
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
- GParamSpec *maman_param_spec;
+ GParamSpec *pspec;
gobject_class->set_property = bar_set_property;
gobject_class->get_property = bar_get_property;
- maman_param_spec = g_param_spec_string ("maman",
+ pspec = g_param_spec_string ("maman",
"Maman construct prop",
"Set maman's name",
"no-name-set" /* default value */,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE);
g_object_class_install_property (gobject_class,
PROP_MAMAN,
- maman_param_spec);
+ pspec);
}
</programlisting>
If you need this, make sure you can build and run code similar to the code shown above. Make sure