glib/gobject/tests
Ryan Lortie c18462b580 GParamSpec: add g_param_spec_get_default_value()
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
2013-04-23 14:39:09 -04:00
..
.gitignore update .gitignore 2012-09-03 08:56:10 -04:00
binding.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
boxed.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
dynamictests.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
enums.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
ifaceproperties.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
Makefile.am build: Add --disable-compile-warnings 2013-02-27 08:34:01 -05:00
marshalers.list Add more tests for signal emissions 2012-03-02 17:13:04 +01:00
param.c GParamSpec: add g_param_spec_get_default_value() 2013-04-23 14:39:09 -04:00
properties.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
qdata.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
reference.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
signals.c tests/signals: Disable large enumeration value test that is failing on PPC64 2012-10-31 17:45:21 -04:00
testcommon.h Move ifaceproperties test to gobject/tests/ 2010-12-27 23:49:12 -05:00
threadtests.c gtype: disallow adding interfaces after the fact 2013-01-04 21:20:04 +01:00
valuearray.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00