mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-13 20:47:46 +02:00
docs: shorten var name in example
We use 'pspec' instead of 'maman_param_spec' elsewhere too.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user