diff options
author | Owen Taylor <otaylor@redhat.com> | 2003-10-21 19:12:27 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2003-10-21 19:12:27 +0000 |
commit | 6f5794fad084ffa1179509c1e6ca9401884596e3 (patch) | |
tree | 82487af86773447846f0a10275acc04a6c1e4e21 /gobject/gobject.h | |
parent | 4a29291187c5d1b267ab87378a4f89abf4f013e0 (diff) | |
download | glib-6f5794fad084ffa1179509c1e6ca9401884596e3.tar.gz |
Add a new GParamSpecOverride type that is a pointer to a different
Tue Oct 14 17:40:19 2003 Owen Taylor <otaylor@redhat.com>
* gparamspecs.[ch]: Add a new GParamSpecOverride type
that is a pointer to a different paramspec in a parent
class or interface.
* gparam.[ch]: Add g_paramspec_get_redirect_target()
which follows GParamSpecOverride to the real property.
Make g_param_spec_pool_list() hand redirections,
properties on interfaces.
* gobject.[ch] gobjectnotifyqueue.c: Add
g_object_interface_install_property,
g_object_interface_find_property,
g_object_interface_list_properties(). Redirect virtually all
publically exposed GParamSpec's to the redirect target if
any. (->constructor is the exception.)
(#105894)
Diffstat (limited to 'gobject/gobject.h')
-rw-r--r-- | gobject/gobject.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gobject/gobject.h b/gobject/gobject.h index 733ce0afa..6522a0087 100644 --- a/gobject/gobject.h +++ b/gobject/gobject.h @@ -118,6 +118,17 @@ GParamSpec* g_object_class_find_property (GObjectClass *oclass, const gchar *property_name); GParamSpec**g_object_class_list_properties (GObjectClass *oclass, guint *n_properties); +void g_object_class_override_property (GObjectClass *oclass, + guint property_id, + const gchar *name); + +void g_object_interface_install_property (gpointer g_iface, + GParamSpec *pspec); +GParamSpec* g_object_interface_find_property (gpointer g_iface, + const gchar *property_name); +GParamSpec**g_object_interface_list_properties (gpointer g_iface, + guint *n_properties_p); + gpointer g_object_new (GType object_type, const gchar *first_property_name, ...); |