mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 03:46:17 +01:00
c18462b580
The way of getting the default value out of a GParamSpec is to allocate a GValue, initialise it, then call g_param_spec_set_default() to set the default value into that GValue. This is exactly how we handle setting the default value for all of the construct properties that were not explicitly passed to g_object_new(). Instead of doing the alloc/init/store on all construct properties on every call to g_object_new(), we can cache those GValues in the private data of the GParamSpec itself and reuse them. This patch does not actually make that change to g_object_new() yet, but it adds the API to GParamSpec so that a future patch to GObject can make the change. https://bugzilla.gnome.org/show_bug.cgi?id=698056 |
||
---|---|---|
.. | ||
images | ||
tmpl | ||
glib-genmarshal.xml | ||
glib-mkenums.xml | ||
gobject-docs.xml | ||
gobject-overrides.txt | ||
gobject-query.xml | ||
gobject-sections.txt | ||
gobject.cI | ||
gobject.types | ||
Makefile.am | ||
tut_gobject.xml | ||
tut_gsignal.xml | ||
tut_gtype.xml | ||
tut_howto.xml | ||
tut_intro.xml | ||
tut_tools.xml | ||
version.xml.in |