mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 10: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)
|
||||
{
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user