mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
docs: shorten var name in example
We use 'pspec' instead of 'maman_param_spec' elsewhere too.
This commit is contained in:
parent
aa8c8df44f
commit
de432280a0
@ -346,19 +346,19 @@ static void
|
|||||||
bar_class_init (MamanBarClass *klass)
|
bar_class_init (MamanBarClass *klass)
|
||||||
{
|
{
|
||||||
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
||||||
GParamSpec *maman_param_spec;
|
GParamSpec *pspec;
|
||||||
|
|
||||||
gobject_class->set_property = bar_set_property;
|
gobject_class->set_property = bar_set_property;
|
||||||
gobject_class->get_property = bar_get_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",
|
"Maman construct prop",
|
||||||
"Set maman's name",
|
"Set maman's name",
|
||||||
"no-name-set" /* default value */,
|
"no-name-set" /* default value */,
|
||||||
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE);
|
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE);
|
||||||
g_object_class_install_property (gobject_class,
|
g_object_class_install_property (gobject_class,
|
||||||
PROP_MAMAN,
|
PROP_MAMAN,
|
||||||
maman_param_spec);
|
pspec);
|
||||||
}
|
}
|
||||||
</programlisting>
|
</programlisting>
|
||||||
If you need this, make sure you can build and run code similar to the code shown above. Make sure
|
If you need this, make sure you can build and run code similar to the code shown above. Make sure
|
||||||
|
Loading…
Reference in New Issue
Block a user