glib/docs/reference/gobject
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
..
images add missing image 2005-04-22 18:34:41 +00:00
tmpl gobject docs: ignore some sgml files 2010-06-21 14:01:50 -04:00
glib-genmarshal.xml Improve glib-genmarshal man page 2012-08-16 18:46:17 -04:00
glib-mkenums.xml docs: Improve man page consistency 2012-08-03 23:36:45 -04:00
gobject-docs.xml add 2.36 index to gobject docs 2013-02-03 13:26:36 -05:00
gobject-overrides.txt Improve separation of generic non-generic parts and dependencies. 2000-09-06 15:01:07 +00:00
gobject-query.xml docs: Improve man page consistency 2012-08-03 23:36:45 -04:00
gobject-sections.txt GParamSpec: add g_param_spec_get_default_value() 2013-04-23 14:39:09 -04:00
gobject.cI Removed... ...and readded. Change to the standard file extension for 2003-10-20 18:40:00 +00:00
gobject.types gobject: Add GBinding 2010-06-15 16:06:18 +01:00
Makefile.am Silence automake 2013-02-02 22:54:15 -05:00
tut_gobject.xml gobject docs: Remove confusing acronym 2012-08-06 10:26:45 -04:00
tut_gsignal.xml docs: Use latest docbook dtd: 4.5 2012-04-23 02:46:18 +01:00
tut_gtype.xml Convert g_type_init() to a ctor 2012-10-16 09:39:24 -04:00
tut_howto.xml Small cleanup to tutorial headings 2013-03-17 23:01:21 -04:00
tut_intro.xml docs: Use latest docbook dtd: 4.5 2012-04-23 02:46:18 +01:00
tut_tools.xml docs: Use latest docbook dtd: 4.5 2012-04-23 02:46:18 +01:00
version.xml.in Add version info to API docs. 2002-11-23 01:37:17 +00:00