From 8962868ff902e58456c545478e62796029d1fe5c Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 1 Sep 2009 21:12:44 -0400 Subject: Relax the EBinding API to reduce GObject casting. Also make it more fault-tolerant by warning about non-existent property names instead of just crashing. --- e-util/e-binding.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'e-util/e-binding.h') diff --git a/e-util/e-binding.h b/e-util/e-binding.h index a36c94ec81..180edc9f49 100644 --- a/e-util/e-binding.h +++ b/e-util/e-binding.h @@ -66,39 +66,39 @@ struct _EMutualBinding { EBindingLink reverse; }; -EBinding * e_binding_new (GObject *src_object, +EBinding * e_binding_new (gpointer src_object, const gchar *src_property, - GObject *dst_object, + gpointer dst_object, const gchar *dst_property); -EBinding * e_binding_new_full (GObject *src_object, +EBinding * e_binding_new_full (gpointer src_object, const gchar *src_property, - GObject *dst_object, + gpointer dst_object, const gchar *dst_property, EBindingTransform transform, GDestroyNotify destroy_notify, gpointer user_data); -EBinding * e_binding_new_with_negation (GObject *src_object, +EBinding * e_binding_new_with_negation (gpointer src_object, const gchar *src_property, - GObject *dst_object, + gpointer dst_object, const gchar *dst_property); void e_binding_unbind (EBinding *binding); -EMutualBinding *e_mutual_binding_new (GObject *object1, +EMutualBinding *e_mutual_binding_new (gpointer object1, const gchar *property1, - GObject *object2, + gpointer object2, const gchar *property2); -EMutualBinding *e_mutual_binding_new_full (GObject *object1, +EMutualBinding *e_mutual_binding_new_full (gpointer object1, const gchar *property1, - GObject *object2, + gpointer object2, const gchar *property2, EBindingTransform transform, EBindingTransform reverse_transform, GDestroyNotify destroy_notify, gpointer user_data); EMutualBinding *e_mutual_binding_new_with_negation - (GObject *object1, + (gpointer object1, const gchar *property1, - GObject *object2, + gpointer object2, const gchar *property2); void e_mutual_binding_unbind (EMutualBinding *binding); -- cgit v1.2.3