mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +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 |
||
---|---|---|
.. | ||
.gitignore | ||
binding.c | ||
boxed.c | ||
dynamictests.c | ||
enums.c | ||
ifaceproperties.c | ||
Makefile.am | ||
marshalers.list | ||
param.c | ||
properties.c | ||
qdata.c | ||
reference.c | ||
signals.c | ||
testcommon.h | ||
threadtests.c | ||
valuearray.c |