gobject: Add wrappers for overriding GProperty default values

We need convenience API for sub-classes that wish to override the
default value of a property installed by one of their parents.

https://bugzilla.gnome.org/show_bug.cgi?id=648526
This commit is contained in:
Emmanuele Bassi
2013-06-19 23:25:51 +01:00
parent e783b3883e
commit d778ffd6fa
3 changed files with 173 additions and 6 deletions

View File

@@ -412,6 +412,15 @@ GLIB_AVAILABLE_IN_ALL
GParamSpec**g_object_interface_list_properties (gpointer g_iface,
guint *n_properties_p);
GLIB_AVAILABLE_IN_2_38
void g_object_class_override_property_default (GObjectClass *oclass,
const gchar *property_name,
...);
GLIB_AVAILABLE_IN_2_38
void g_object_class_override_property_default_value (GObjectClass *oclass,
const gchar *property_name,
const GValue *value);
GLIB_AVAILABLE_IN_ALL
GType g_object_get_type (void) G_GNUC_CONST;
GLIB_AVAILABLE_IN_ALL