[evolution-data-server] Provide and use thread safe variants of g_object_bind_property*() functions



commit 331aca777efc7ef3282ee1b30324e9d68f3ab5cd
Author: Milan Crha <mcrha redhat com>
Date:   Tue Feb 24 09:51:02 2015 +0100

    Provide and use thread safe variants of g_object_bind_property*() functions

 .../backends/google/e-book-backend-google.c        |    2 +-
 addressbook/backends/ldap/e-source-ldap.c          |    4 +-
 .../backends/webdav/e-book-backend-webdav.c        |    2 +-
 addressbook/libedata-book/e-data-book.c            |    6 +-
 calendar/backends/caldav/e-cal-backend-caldav.c    |    2 +-
 calendar/backends/gtasks/e-cal-backend-gtasks.c    |    2 +-
 calendar/backends/http/e-cal-backend-http.c        |    2 +-
 calendar/libedata-cal/e-data-cal.c                 |    6 +-
 camel/camel-network-service.c                      |    2 +-
 camel/camel.c                                      |   88 ++++++++++++++++++++
 camel/camel.h                                      |   23 +++++
 camel/providers/imapx/camel-imapx-server.c         |    2 +-
 libebackend/e-collection-backend.c                 |   12 ++--
 libedataserver/e-data-server-util.c                |   63 ++++++++++++++
 libedataserver/e-data-server-util.h                |   22 +++++
 libedataserver/e-source-camel.c                    |    2 +-
 libedataserver/e-source-webdav.c                   |    2 +-
 .../module-gnome-online-accounts.c                 |   20 ++--
 modules/google-backend/module-google-backend.c     |    6 +-
 modules/owncloud-backend/owncloud-utils.c          |    2 +-
 .../module-ubuntu-online-accounts.c                |   14 ++--
 modules/yahoo-backend/module-yahoo-backend.c       |    2 +-
 22 files changed, 241 insertions(+), 45 deletions(-)
---
diff --git a/addressbook/backends/google/e-book-backend-google.c 
b/addressbook/backends/google/e-book-backend-google.c
index 6cdf0e9..9664506 100644
--- a/addressbook/backends/google/e-book-backend-google.c
+++ b/addressbook/backends/google/e-book-backend-google.c
@@ -1248,7 +1248,7 @@ connect_without_password (EBookBackend *backend,
 #if GDATA_CHECK_VERSION(0,15,0)
                /* proxy-resolver was added in 0.15.0.
                 * (https://bugzilla.gnome.org/709758) */
-               g_object_bind_property (
+               e_binding_bind_property (
                        backend, "proxy-resolver",
                        priv->service, "proxy-resolver",
                        G_BINDING_SYNC_CREATE);
diff --git a/addressbook/backends/ldap/e-source-ldap.c b/addressbook/backends/ldap/e-source-ldap.c
index 4f6a5c1..7595a27 100644
--- a/addressbook/backends/ldap/e-source-ldap.c
+++ b/addressbook/backends/ldap/e-source-ldap.c
@@ -250,7 +250,7 @@ source_ldap_constructed (GObject *object)
        extension_name = E_SOURCE_EXTENSION_AUTHENTICATION;
        other_extension = e_source_get_extension (source, extension_name);
 
-       g_object_bind_property_full (
+       e_binding_bind_property_full (
                other_extension, "method",
                this_extension, "authentication",
                G_BINDING_BIDIRECTIONAL |
@@ -262,7 +262,7 @@ source_ldap_constructed (GObject *object)
        extension_name = E_SOURCE_EXTENSION_SECURITY;
        other_extension = e_source_get_extension (source, extension_name);
 
-       g_object_bind_property_full (
+       e_binding_bind_property_full (
                other_extension, "method",
                this_extension, "security",
                G_BINDING_BIDIRECTIONAL |
diff --git a/addressbook/backends/webdav/e-book-backend-webdav.c 
b/addressbook/backends/webdav/e-book-backend-webdav.c
index c9fce94..a3aa82f 100644
--- a/addressbook/backends/webdav/e-book-backend-webdav.c
+++ b/addressbook/backends/webdav/e-book-backend-webdav.c
@@ -1363,7 +1363,7 @@ book_backend_webdav_open_sync (EBookBackend *backend,
                SOUP_SESSION_SSL_USE_SYSTEM_CA_FILE, TRUE,
                NULL);
 
-       g_object_bind_property (
+       e_binding_bind_property (
                backend, "proxy-resolver",
                session, "proxy-resolver",
                G_BINDING_SYNC_CREATE);
diff --git a/addressbook/libedata-book/e-data-book.c b/addressbook/libedata-book/e-data-book.c
index 165fcda..96a52fb 100644
--- a/addressbook/libedata-book/e-data-book.c
+++ b/addressbook/libedata-book/e-data-book.c
@@ -1920,17 +1920,17 @@ data_book_constructed (GObject *object)
        /* Attach ourselves to the EBookBackend. */
        e_book_backend_set_data_book (backend, book);
 
-       g_object_bind_property (
+       e_binding_bind_property (
                backend, "cache-dir",
                book->priv->dbus_interface, "cache-dir",
                G_BINDING_SYNC_CREATE);
 
-       g_object_bind_property (
+       e_binding_bind_property (
                backend, "online",
                book->priv->dbus_interface, "online",
                G_BINDING_SYNC_CREATE);
 
-       g_object_bind_property (
+       e_binding_bind_property (
                backend, "writable",
                book->priv->dbus_interface, "writable",
                G_BINDING_SYNC_CREATE);
diff --git a/calendar/backends/caldav/e-cal-backend-caldav.c b/calendar/backends/caldav/e-cal-backend-caldav.c
index c576bd2..c0533c0 100644
--- a/calendar/backends/caldav/e-cal-backend-caldav.c
+++ b/calendar/backends/caldav/e-cal-backend-caldav.c
@@ -5510,7 +5510,7 @@ e_cal_backend_caldav_init (ECalBackendCalDAV *cbdav)
                SOUP_SESSION_SSL_USE_SYSTEM_CA_FILE, TRUE,
                NULL);
 
-       g_object_bind_property (
+       e_binding_bind_property (
                cbdav, "proxy-resolver",
                cbdav->priv->session, "proxy-resolver",
                G_BINDING_SYNC_CREATE);
diff --git a/calendar/backends/gtasks/e-cal-backend-gtasks.c b/calendar/backends/gtasks/e-cal-backend-gtasks.c
index 63e4e6d..23ca79d 100644
--- a/calendar/backends/gtasks/e-cal-backend-gtasks.c
+++ b/calendar/backends/gtasks/e-cal-backend-gtasks.c
@@ -666,7 +666,7 @@ ecb_gtasks_request_authorization (ECalBackend *backend,
                tasks_service = gdata_tasks_service_new (gtasks->priv->authorizer);
                gtasks->priv->service = tasks_service;
 
-               g_object_bind_property (
+               e_binding_bind_property (
                        backend, "proxy-resolver",
                        gtasks->priv->service, "proxy-resolver",
                        G_BINDING_SYNC_CREATE);
diff --git a/calendar/backends/http/e-cal-backend-http.c b/calendar/backends/http/e-cal-backend-http.c
index 38599d7..55b5db0 100644
--- a/calendar/backends/http/e-cal-backend-http.c
+++ b/calendar/backends/http/e-cal-backend-http.c
@@ -181,7 +181,7 @@ e_cal_backend_http_constructed (GObject *object)
        backend = E_CAL_BACKEND_HTTP (object);
        backend->priv->soup_session = soup_session;
 
-       g_object_bind_property (
+       e_binding_bind_property (
                backend, "proxy-resolver",
                backend->priv->soup_session, "proxy-resolver",
                G_BINDING_SYNC_CREATE);
diff --git a/calendar/libedata-cal/e-data-cal.c b/calendar/libedata-cal/e-data-cal.c
index e291065..b549fcc 100644
--- a/calendar/libedata-cal/e-data-cal.c
+++ b/calendar/libedata-cal/e-data-cal.c
@@ -2534,17 +2534,17 @@ data_cal_constructed (GObject *object)
        /* Attach ourselves to the ECalBackend. */
        e_cal_backend_set_data_cal (backend, cal);
 
-       g_object_bind_property (
+       e_binding_bind_property (
                backend, "cache-dir",
                cal->priv->dbus_interface, "cache-dir",
                G_BINDING_SYNC_CREATE);
 
-       g_object_bind_property (
+       e_binding_bind_property (
                backend, "online",
                cal->priv->dbus_interface, "online",
                G_BINDING_SYNC_CREATE);
 
-       g_object_bind_property (
+       e_binding_bind_property (
                backend, "writable",
                cal->priv->dbus_interface, "writable",
                G_BINDING_SYNC_CREATE);
diff --git a/camel/camel-network-service.c b/camel/camel-network-service.c
index 8d61cc0..e7f3d21 100644
--- a/camel/camel-network-service.c
+++ b/camel/camel-network-service.c
@@ -536,7 +536,7 @@ network_service_connect_sync (CamelNetworkService *service,
        if (method == CAMEL_NETWORK_SECURITY_METHOD_SSL_ON_ALTERNATE_PORT)
                g_socket_client_set_tls (client, TRUE);
 
-       g_object_bind_property (
+       camel_binding_bind_property (
                service, "proxy-resolver",
                client, "proxy-resolver",
                G_BINDING_SYNC_CREATE);
diff --git a/camel/camel.c b/camel/camel.c
index b6bfea8..eaba503 100644
--- a/camel/camel.c
+++ b/camel/camel.c
@@ -266,3 +266,91 @@ camel_shutdown (void)
 
        initialised = FALSE;
 }
+
+G_LOCK_DEFINE_STATIC (camel_binding_lock);
+
+/**
+ * camel_binding_bind_property:
+ *
+ * Thread safe variant of g_object_bind_property(). See its documentation
+ * for more information on arguments and return value.
+ *
+ * Since: 3.16
+ **/
+GBinding *
+camel_binding_bind_property (gpointer source,
+                            const gchar *source_property,
+                            gpointer target,
+                            const gchar *target_property,
+                            GBindingFlags flags)
+{
+       GBinding *binding;
+
+       G_LOCK (camel_binding_lock);
+
+       binding = g_object_bind_property (source, source_property, target, target_property, flags);
+
+       G_UNLOCK (camel_binding_lock);
+
+       return binding;
+}
+
+/**
+ * camel_binding_bind_property_full:
+ *
+ * Thread safe variant of g_object_bind_property_full(). See its documentation
+ * for more information on arguments and return value.
+ *
+ * Since: 3.16
+ **/
+GBinding *
+camel_binding_bind_property_full (gpointer source,
+                                 const gchar *source_property,
+                                 gpointer target,
+                                 const gchar *target_property,
+                                 GBindingFlags flags,
+                                 GBindingTransformFunc transform_to,
+                                 GBindingTransformFunc transform_from,
+                                 gpointer user_data,
+                                 GDestroyNotify notify)
+{
+       GBinding *binding;
+
+       G_LOCK (camel_binding_lock);
+
+       binding = g_object_bind_property_full (source, source_property, target, target_property, flags,
+               transform_to, transform_from, user_data, notify);
+
+       G_UNLOCK (camel_binding_lock);
+
+       return binding;
+}
+
+/**
+ * camel_binding_bind_property_with_closures:
+ *
+ * Thread safe variant of g_object_bind_property_with_closures(). See its
+ * documentation for more information on arguments and return value.
+ *
+ * Since: 3.16
+ **/
+GBinding *
+camel_binding_bind_property_with_closures (gpointer source,
+                                          const gchar *source_property,
+                                          gpointer target,
+                                          const gchar *target_property,
+                                          GBindingFlags flags,
+                                          GClosure *transform_to,
+                                          GClosure *transform_from)
+{
+       GBinding *binding;
+
+       G_LOCK (camel_binding_lock);
+
+       binding = g_object_bind_property_with_closures (source, source_property, target, target_property, 
flags,
+               transform_to, transform_from);
+
+       G_UNLOCK (camel_binding_lock);
+
+       return binding;
+}
diff --git a/camel/camel.h b/camel/camel.h
index d39190e..5710717 100644
--- a/camel/camel.h
+++ b/camel/camel.h
@@ -143,6 +143,29 @@ extern gint camel_application_is_exiting;
 gint camel_init (const gchar *certdb_dir, gboolean nss_init);
 void camel_shutdown (void);
 
+GBinding *     camel_binding_bind_property     (gpointer source,
+                                                const gchar *source_property,
+                                                gpointer target,
+                                                const gchar *target_property,
+                                                GBindingFlags flags);
+GBinding *     camel_binding_bind_property_full(gpointer source,
+                                                const gchar *source_property,
+                                                gpointer target,
+                                                const gchar *target_property,
+                                                GBindingFlags flags,
+                                                GBindingTransformFunc transform_to,
+                                                GBindingTransformFunc transform_from,
+                                                gpointer user_data,
+                                                GDestroyNotify notify);
+GBinding *     camel_binding_bind_property_with_closures
+                                               (gpointer source,
+                                                const gchar *source_property,
+                                                gpointer target,
+                                                const gchar *target_property,
+                                                GBindingFlags flags,
+                                                GClosure *transform_to,
+                                                GClosure *transform_from);
+
 G_END_DECLS
 
 #endif /* CAMEL_H */
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 49ddf7d..05f119b 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -4244,7 +4244,7 @@ imapx_server_set_streams (CamelIMAPXServer *is,
 
                /* Buffer the input stream for parsing. */
                temp_stream = camel_imapx_input_stream_new (input_stream);
-               g_object_bind_property (
+               camel_binding_bind_property (
                        temp_stream, "close-base-stream",
                        input_stream, "close-base-stream",
                        G_BINDING_SYNC_CREATE);
diff --git a/libebackend/e-collection-backend.c b/libebackend/e-collection-backend.c
index 0134460..274faa6 100644
--- a/libebackend/e-collection-backend.c
+++ b/libebackend/e-collection-backend.c
@@ -385,7 +385,7 @@ collection_backend_bind_child_enabled (ECollectionBackend *backend,
        extension = e_source_get_extension (collection_source, extension_name);
 
        if (collection_backend_child_is_calendar (child_source)) {
-               g_object_bind_property_full (
+               e_binding_bind_property_full (
                        extension, "calendar-enabled",
                        child_source, "enabled",
                        G_BINDING_SYNC_CREATE,
@@ -397,7 +397,7 @@ collection_backend_bind_child_enabled (ECollectionBackend *backend,
        }
 
        if (collection_backend_child_is_contacts (child_source)) {
-               g_object_bind_property_full (
+               e_binding_bind_property_full (
                        extension, "contacts-enabled",
                        child_source, "enabled",
                        G_BINDING_SYNC_CREATE,
@@ -409,7 +409,7 @@ collection_backend_bind_child_enabled (ECollectionBackend *backend,
        }
 
        if (collection_backend_child_is_mail (child_source)) {
-               g_object_bind_property_full (
+               e_binding_bind_property_full (
                        extension, "mail-enabled",
                        child_source, "enabled",
                        G_BINDING_SYNC_CREATE,
@@ -420,7 +420,7 @@ collection_backend_bind_child_enabled (ECollectionBackend *backend,
                return;
        }
 
-       g_object_bind_property (
+       e_binding_bind_property (
                collection_source, "enabled",
                child_source, "enabled",
                G_BINDING_SYNC_CREATE);
@@ -836,7 +836,7 @@ collection_backend_child_added (ECollectionBackend *backend,
 
        /* Synchronize mail-related display names with the collection. */
        if (is_mail)
-               g_object_bind_property (
+               e_binding_bind_property (
                        collection_source, "display-name",
                        child_source, "display-name",
                        G_BINDING_SYNC_CREATE);
@@ -846,7 +846,7 @@ collection_backend_child_added (ECollectionBackend *backend,
                E_SERVER_SIDE_SOURCE (child_source), FALSE);
 
        /* Collection children inherit OAuth 2.0 support if available. */
-       g_object_bind_property (
+       e_binding_bind_property (
                collection_source, "oauth2-support",
                child_source, "oauth2-support",
                G_BINDING_SYNC_CREATE);
diff --git a/libedataserver/e-data-server-util.c b/libedataserver/e-data-server-util.c
index 5d1c7be..e38d00f 100644
--- a/libedataserver/e-data-server-util.c
+++ b/libedataserver/e-data-server-util.c
@@ -33,6 +33,7 @@
 #include <glib-object.h>
 
 #include "e-source-enumtypes.h"
+#include "camel/camel.h"
 
 #include "e-data-server-util.h"
 
@@ -1356,6 +1357,68 @@ e_file_recursive_delete_finish (GFile *file,
 }
 
 /**
+ * e_binding_bind_property:
+ *
+ * Thread safe variant of g_object_bind_property(). See its documentation
+ * for more information on arguments and return value.
+ *
+ * Since: 3.16
+ **/
+GBinding *
+e_binding_bind_property (gpointer source,
+                        const gchar *source_property,
+                        gpointer target,
+                        const gchar *target_property,
+                        GBindingFlags flags)
+{
+       return camel_binding_bind_property (source, source_property, target, target_property, flags);
+}
+
+/**
+ * e_binding_bind_property_full:
+ *
+ * Thread safe variant of g_object_bind_property_full(). See its documentation
+ * for more information on arguments and return value.
+ *
+ * Since: 3.16
+ **/
+GBinding *
+e_binding_bind_property_full (gpointer source,
+                             const gchar *source_property,
+                             gpointer target,
+                             const gchar *target_property,
+                             GBindingFlags flags,
+                             GBindingTransformFunc transform_to,
+                             GBindingTransformFunc transform_from,
+                             gpointer user_data,
+                             GDestroyNotify notify)
+{
+       return camel_binding_bind_property_full (source, source_property, target, target_property, flags,
+               transform_to, transform_from, user_data, notify);
+}
+
+/**
+ * e_binding_bind_property_with_closures:
+ *
+ * Thread safe variant of g_object_bind_property_with_closures(). See its
+ * documentation for more information on arguments and return value.
+ *
+ * Since: 3.16
+ **/
+GBinding *
+e_binding_bind_property_with_closures (gpointer source,
+                                      const gchar *source_property,
+                                      gpointer target,
+                                      const gchar *target_property,
+                                      GBindingFlags flags,
+                                      GClosure *transform_to,
+                                      GClosure *transform_from)
+{
+       return camel_binding_bind_property_with_closures (source, source_property, target, target_property, 
flags,
+               transform_to, transform_from);
+}
+
+/**
  * e_binding_transform_enum_value_to_nick:
  * @binding: a #GBinding
  * @source_value: a #GValue whose type is derived from #G_TYPE_ENUM
diff --git a/libedataserver/e-data-server-util.h b/libedataserver/e-data-server-util.h
index 7cd34b3..2608ec5 100644
--- a/libedataserver/e-data-server-util.h
+++ b/libedataserver/e-data-server-util.h
@@ -98,6 +98,28 @@ gboolean     e_file_recursive_delete_finish  (GFile *file,
                                                 GAsyncResult *result,
                                                 GError **error);
 
+GBinding *     e_binding_bind_property         (gpointer source,
+                                                const gchar *source_property,
+                                                gpointer target,
+                                                const gchar *target_property,
+                                                GBindingFlags flags);
+GBinding *     e_binding_bind_property_full    (gpointer source,
+                                                const gchar *source_property,
+                                                gpointer target,
+                                                const gchar *target_property,
+                                                GBindingFlags flags,
+                                                GBindingTransformFunc transform_to,
+                                                GBindingTransformFunc transform_from,
+                                                gpointer user_data,
+                                                GDestroyNotify notify);
+GBinding *     e_binding_bind_property_with_closures
+                                               (gpointer source,
+                                                const gchar *source_property,
+                                                gpointer target,
+                                                const gchar *target_property,
+                                                GBindingFlags flags,
+                                                GClosure *transform_to,
+                                                GClosure *transform_from);
 /* Useful GBinding transform functions */
 gboolean       e_binding_transform_enum_value_to_nick
                                                (GBinding *binding,
diff --git a/libedataserver/e-source-camel.c b/libedataserver/e-source-camel.c
index 6735fd5..b46f133 100644
--- a/libedataserver/e-source-camel.c
+++ b/libedataserver/e-source-camel.c
@@ -442,7 +442,7 @@ source_camel_constructed (GObject *object)
                        g_param_value_set_default (pspec, value);
                }
 
-               g_object_bind_property_full (
+               e_binding_bind_property_full (
                        extension, source_property,
                        priv->settings, target_property,
                        G_BINDING_BIDIRECTIONAL |
diff --git a/libedataserver/e-source-webdav.c b/libedataserver/e-source-webdav.c
index efd7e55..f696fdf 100644
--- a/libedataserver/e-source-webdav.c
+++ b/libedataserver/e-source-webdav.c
@@ -449,7 +449,7 @@ source_webdav_constructed (GObject *object)
 
        /* This updates the authentication method
         * based on whether a user name was given. */
-       g_object_bind_property_full (
+       e_binding_bind_property_full (
                extension, "user",
                extension, "method",
                G_BINDING_SYNC_CREATE,
diff --git a/modules/gnome-online-accounts/module-gnome-online-accounts.c 
b/modules/gnome-online-accounts/module-gnome-online-accounts.c
index 7b34918..f3533be 100644
--- a/modules/gnome-online-accounts/module-gnome-online-accounts.c
+++ b/modules/gnome-online-accounts/module-gnome-online-accounts.c
@@ -577,7 +577,7 @@ gnome_online_accounts_config_collection (EGnomeOnlineAccounts *extension,
        goa_calendar = goa_object_get_calendar (goa_object);
        goa_contacts = goa_object_get_contacts (goa_object);
 
-       g_object_bind_property (
+       e_binding_bind_property (
                goa_account, "presentation-identity",
                source, "display-name",
                G_BINDING_SYNC_CREATE);
@@ -585,20 +585,20 @@ gnome_online_accounts_config_collection (EGnomeOnlineAccounts *extension,
        extension_name = E_SOURCE_EXTENSION_GOA;
        source_extension = e_source_get_extension (source, extension_name);
 
-       g_object_bind_property (
+       e_binding_bind_property (
                goa_account, "id",
                source_extension, "account-id",
                G_BINDING_SYNC_CREATE);
 
        if (goa_calendar != NULL) {
-               g_object_bind_property (
+               e_binding_bind_property (
                        goa_calendar, "uri",
                        source_extension, "calendar-url",
                        G_BINDING_SYNC_CREATE);
        }
 
        if (goa_contacts != NULL) {
-               g_object_bind_property (
+               e_binding_bind_property (
                        goa_contacts, "uri",
                        source_extension, "contacts-url",
                        G_BINDING_SYNC_CREATE);
@@ -607,7 +607,7 @@ gnome_online_accounts_config_collection (EGnomeOnlineAccounts *extension,
        extension_name = E_SOURCE_EXTENSION_COLLECTION;
        source_extension = e_source_get_extension (source, extension_name);
 
-       g_object_bind_property_full (
+       e_binding_bind_property_full (
                goa_account, "provider-type",
                source_extension, "backend-name",
                G_BINDING_SYNC_CREATE,
@@ -615,12 +615,12 @@ gnome_online_accounts_config_collection (EGnomeOnlineAccounts *extension,
                NULL,
                NULL, (GDestroyNotify) NULL);
 
-       g_object_bind_property (
+       e_binding_bind_property (
                goa_account, "identity",
                source_extension, "identity",
                G_BINDING_SYNC_CREATE);
 
-       g_object_bind_property_full (
+       e_binding_bind_property_full (
                goa_object, "calendar",
                source_extension, "calendar-enabled",
                G_BINDING_SYNC_CREATE,
@@ -628,7 +628,7 @@ gnome_online_accounts_config_collection (EGnomeOnlineAccounts *extension,
                NULL,
                NULL, (GDestroyNotify) NULL);
 
-       g_object_bind_property_full (
+       e_binding_bind_property_full (
                goa_object, "contacts",
                source_extension, "contacts-enabled",
                G_BINDING_SYNC_CREATE,
@@ -636,7 +636,7 @@ gnome_online_accounts_config_collection (EGnomeOnlineAccounts *extension,
                NULL,
                NULL, (GDestroyNotify) NULL);
 
-       g_object_bind_property_full (
+       e_binding_bind_property_full (
                goa_object, "mail",
                source_extension, "mail-enabled",
                G_BINDING_SYNC_CREATE,
@@ -702,7 +702,7 @@ gnome_online_accounts_config_mail_identity (EGnomeOnlineAccounts *extension,
        extension_name = E_SOURCE_EXTENSION_MAIL_IDENTITY;
        source_extension = e_source_get_extension (source, extension_name);
 
-       g_object_bind_property (
+       e_binding_bind_property (
                goa_mail, "email-address",
                source_extension, "address",
                G_BINDING_SYNC_CREATE);
diff --git a/modules/google-backend/module-google-backend.c b/modules/google-backend/module-google-backend.c
index 5d9e5ff..9b49a5b 100644
--- a/modules/google-backend/module-google-backend.c
+++ b/modules/google-backend/module-google-backend.c
@@ -220,7 +220,7 @@ google_backend_add_calendar (ECollectionBackend *backend)
        extension_name = E_SOURCE_EXTENSION_AUTHENTICATION;
        extension = e_source_get_extension (source, extension_name);
 
-       g_object_bind_property (
+       e_binding_bind_property (
                collection_extension, "identity",
                extension, "user",
                G_BINDING_SYNC_CREATE);
@@ -297,7 +297,7 @@ google_backend_add_tasks (ECollectionBackend *backend)
        e_source_authentication_set_host (E_SOURCE_AUTHENTICATION (extension), "www.google.com");
        e_source_authentication_set_method (E_SOURCE_AUTHENTICATION (extension), "OAuth2");
 
-       g_object_bind_property (
+       e_binding_bind_property (
                collection_extension, "identity",
                extension, "user",
                G_BINDING_SYNC_CREATE);
@@ -353,7 +353,7 @@ google_backend_add_contacts (ECollectionBackend *backend)
                E_SOURCE_AUTHENTICATION (extension),
                GOOGLE_CONTACTS_HOST);
 
-       g_object_bind_property (
+       e_binding_bind_property (
                collection_extension, "identity",
                extension, "user",
                G_BINDING_SYNC_CREATE);
diff --git a/modules/owncloud-backend/owncloud-utils.c b/modules/owncloud-backend/owncloud-utils.c
index dadb05d..538bc8b 100644
--- a/modules/owncloud-backend/owncloud-utils.c
+++ b/modules/owncloud-backend/owncloud-utils.c
@@ -441,7 +441,7 @@ find_sources (ECollectionBackend *collection,
                session, "authenticate",
                G_CALLBACK (authenticate_cb), &auth_data);
 
-       g_object_bind_property (
+       e_binding_bind_property (
                collection, "proxy-resolver",
                session, "proxy-resolver",
                G_BINDING_SYNC_CREATE);
diff --git a/modules/ubuntu-online-accounts/module-ubuntu-online-accounts.c 
b/modules/ubuntu-online-accounts/module-ubuntu-online-accounts.c
index 6e5577a..c785116 100644
--- a/modules/ubuntu-online-accounts/module-ubuntu-online-accounts.c
+++ b/modules/ubuntu-online-accounts/module-ubuntu-online-accounts.c
@@ -291,12 +291,12 @@ ubuntu_online_accounts_config_collection (EUbuntuOnlineAccounts *extension,
        gboolean supports_oauth2 = FALSE;
        const gchar *extension_name;
 
-       g_object_bind_property (
+       e_binding_bind_property (
                ag_account, "display-name",
                source, "display-name",
                G_BINDING_SYNC_CREATE);
 
-       g_object_bind_property (
+       e_binding_bind_property (
                ag_account, "enabled",
                source, "enabled",
                G_BINDING_SYNC_CREATE);
@@ -304,7 +304,7 @@ ubuntu_online_accounts_config_collection (EUbuntuOnlineAccounts *extension,
        extension_name = E_SOURCE_EXTENSION_UOA;
        source_extension = e_source_get_extension (source, extension_name);
 
-       g_object_bind_property (
+       e_binding_bind_property (
                ag_account, "id",
                source_extension, "account-id",
                G_BINDING_SYNC_CREATE);
@@ -312,7 +312,7 @@ ubuntu_online_accounts_config_collection (EUbuntuOnlineAccounts *extension,
        extension_name = E_SOURCE_EXTENSION_COLLECTION;
        source_extension = e_source_get_extension (source, extension_name);
 
-       g_object_bind_property_full (
+       e_binding_bind_property_full (
                ag_account, "provider",
                source_extension, "backend-name",
                G_BINDING_SYNC_CREATE,
@@ -328,7 +328,7 @@ ubuntu_online_accounts_config_collection (EUbuntuOnlineAccounts *extension,
        ag_account_service = g_hash_table_lookup (
                account_services, E_AG_SERVICE_TYPE_MAIL);
        if (ag_account_service != NULL) {
-               g_object_bind_property (
+               e_binding_bind_property (
                        ag_account_service , "enabled",
                        source_extension, "mail-enabled",
                        G_BINDING_SYNC_CREATE);
@@ -340,7 +340,7 @@ ubuntu_online_accounts_config_collection (EUbuntuOnlineAccounts *extension,
        ag_account_service = g_hash_table_lookup (
                account_services, E_AG_SERVICE_TYPE_CALENDAR);
        if (ag_account_service != NULL) {
-               g_object_bind_property (
+               e_binding_bind_property (
                        ag_account_service, "enabled",
                        source_extension, "calendar-enabled",
                        G_BINDING_SYNC_CREATE);
@@ -352,7 +352,7 @@ ubuntu_online_accounts_config_collection (EUbuntuOnlineAccounts *extension,
        ag_account_service = g_hash_table_lookup (
                account_services, E_AG_SERVICE_TYPE_CONTACTS);
        if (ag_account_service != NULL) {
-               g_object_bind_property (
+               e_binding_bind_property (
                        ag_account_service, "enabled",
                        source_extension, "contacts-enabled",
                        G_BINDING_SYNC_CREATE);
diff --git a/modules/yahoo-backend/module-yahoo-backend.c b/modules/yahoo-backend/module-yahoo-backend.c
index 22ff7fb..5a973a6 100644
--- a/modules/yahoo-backend/module-yahoo-backend.c
+++ b/modules/yahoo-backend/module-yahoo-backend.c
@@ -142,7 +142,7 @@ yahoo_backend_config_calendar_child (ECollectionBackend *backend,
                E_SOURCE_AUTHENTICATION (extension),
                YAHOO_CALENDAR_HOST);
 
-       g_object_bind_property (
+       e_binding_bind_property (
                collection_extension, "identity",
                extension, "user",
                G_BINDING_SYNC_CREATE);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]