[evolution-ews] Use thread safe variants of g_object_bind_property*() functions from evolution-data-server
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Use thread safe variants of g_object_bind_property*() functions from evolution-data-server
- Date: Tue, 24 Feb 2015 08:55:49 +0000 (UTC)
commit 2daa0ddaa06b20133e2a7eec8046a36734d2d1a5
Author: Milan Crha <mcrha redhat com>
Date: Tue Feb 24 09:55:42 2015 +0100
Use thread safe variants of g_object_bind_property*() functions from evolution-data-server
src/addressbook/e-book-backend-ews.c | 6 +++---
src/calendar/e-cal-backend-ews.c | 2 +-
src/camel/camel-ews-store.c | 4 ++--
src/collection/e-ews-backend.c | 4 ++--
src/configuration/e-mail-config-ews-backend.c | 10 +++++-----
src/configuration/e-mail-config-ews-gal.c | 8 ++++----
src/configuration/e-mail-config-ews-ooo-page.c | 12 ++++++------
src/server/camel-ews-settings.c | 2 +-
src/server/e-ews-connection.c | 4 ++--
9 files changed, 26 insertions(+), 26 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-ews.c b/src/addressbook/e-book-backend-ews.c
index 61ab157..81cd544 100644
--- a/src/addressbook/e-book-backend-ews.c
+++ b/src/addressbook/e-book-backend-ews.c
@@ -2261,7 +2261,7 @@ ews_download_gal_file (EBookBackendEws *cbews,
oab_cnc = e_ews_connection_new (full_url, ews_settings);
- g_object_bind_property (
+ e_binding_bind_property (
cbews, "proxy-resolver",
oab_cnc, "proxy-resolver",
G_BINDING_SYNC_CREATE);
@@ -2671,7 +2671,7 @@ ebews_start_gal_sync (gpointer data)
oab_cnc = e_ews_connection_new (priv->oab_url, ews_settings);
- g_object_bind_property (
+ e_binding_bind_property (
cbews, "proxy-resolver",
oab_cnc, "proxy-resolver",
G_BINDING_SYNC_CREATE);
@@ -4136,7 +4136,7 @@ e_book_backend_ews_authenticate_sync (EBackend *backend,
connection = e_ews_connection_new (hosturl, ews_settings);
- g_object_bind_property (
+ e_binding_bind_property (
ews_backend, "proxy-resolver",
connection, "proxy-resolver",
G_BINDING_SYNC_CREATE);
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index 0a2fd4c..f8db976 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -4284,7 +4284,7 @@ e_cal_backend_ews_authenticate_sync (EBackend *backend,
connection = e_ews_connection_new (hosturl, ews_settings);
- g_object_bind_property (
+ e_binding_bind_property (
backend, "proxy-resolver",
connection, "proxy-resolver",
G_BINDING_SYNC_CREATE);
diff --git a/src/camel/camel-ews-store.c b/src/camel/camel-ews-store.c
index 32c4ad6..9f58060 100644
--- a/src/camel/camel-ews-store.c
+++ b/src/camel/camel-ews-store.c
@@ -1731,7 +1731,7 @@ ews_authenticate_sync (CamelService *service,
g_object_unref (settings);
- g_object_bind_property (
+ e_binding_bind_property (
service, "proxy-resolver",
connection, "proxy-resolver",
G_BINDING_SYNC_CREATE);
@@ -1901,7 +1901,7 @@ ews_store_query_auth_types_sync (CamelService *service,
g_free (hosturl);
g_object_unref (settings);
- g_object_bind_property (
+ e_binding_bind_property (
service, "proxy-resolver",
connection, "proxy-resolver",
G_BINDING_SYNC_CREATE);
diff --git a/src/collection/e-ews-backend.c b/src/collection/e-ews-backend.c
index 5df7ccb..c3fd9cf 100644
--- a/src/collection/e-ews-backend.c
+++ b/src/collection/e-ews-backend.c
@@ -751,7 +751,7 @@ ews_backend_child_added (ECollectionBackend *backend,
auth_child_extension = e_source_get_extension (
child_source, extension_name);
- g_object_bind_property (
+ e_binding_bind_property (
collection_extension, "identity",
auth_child_extension, "user",
G_BINDING_SYNC_CREATE);
@@ -1163,7 +1163,7 @@ e_ews_backend_ref_connection_sync (EEwsBackend *backend,
connection = e_ews_connection_new (hosturl, settings);
g_free (hosturl);
- g_object_bind_property (
+ e_binding_bind_property (
backend, "proxy-resolver",
connection, "proxy-resolver",
G_BINDING_SYNC_CREATE);
diff --git a/src/configuration/e-mail-config-ews-backend.c b/src/configuration/e-mail-config-ews-backend.c
index e0ee76c..b51d0eb 100644
--- a/src/configuration/e-mail-config-ews-backend.c
+++ b/src/configuration/e-mail-config-ews-backend.c
@@ -215,7 +215,7 @@ mail_config_ews_backend_insert_widgets (EMailConfigServiceBackend *backend,
}
}
- g_object_bind_property (
+ e_binding_bind_property (
settings, "use-impersonation",
widget, "active",
G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
@@ -231,7 +231,7 @@ mail_config_ews_backend_insert_widgets (EMailConfigServiceBackend *backend,
widget, "text",
G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
- g_object_bind_property (
+ e_binding_bind_property (
settings, "use-impersonation",
widget, "sensitive",
G_BINDING_SYNC_CREATE);
@@ -240,7 +240,7 @@ mail_config_ews_backend_insert_widgets (EMailConfigServiceBackend *backend,
gtk_grid_attach (GTK_GRID (container), widget, 2, 4, 1, 1);
gtk_widget_show (widget);
- g_object_bind_property (
+ e_binding_bind_property (
priv->impersonate_user_entry, "sensitive",
widget, "sensitive",
G_BINDING_SYNC_CREATE);
@@ -284,7 +284,7 @@ mail_config_ews_backend_insert_widgets (EMailConfigServiceBackend *backend,
/* Don't use G_BINDING_SYNC_CREATE here since the widget
* chooses its initial mechanism more intelligently than
* a simple property binding would. */
- g_object_bind_property (
+ e_binding_bind_property (
settings, "auth-mechanism",
priv->auth_check, "active-mechanism",
G_BINDING_BIDIRECTIONAL);
@@ -294,7 +294,7 @@ mail_config_ews_backend_insert_widgets (EMailConfigServiceBackend *backend,
extension = e_source_get_extension (source, extension_name);
/* The collection identity is the user name. */
- g_object_bind_property (
+ e_binding_bind_property (
settings, "user",
extension, "identity",
G_BINDING_BIDIRECTIONAL |
diff --git a/src/configuration/e-mail-config-ews-gal.c b/src/configuration/e-mail-config-ews-gal.c
index 1f5b27b..8aced2c 100644
--- a/src/configuration/e-mail-config-ews-gal.c
+++ b/src/configuration/e-mail-config-ews-gal.c
@@ -290,7 +290,7 @@ mail_config_ews_gal_constructed (GObject *object)
gtk_box_pack_start (GTK_BOX (page), widget, FALSE, FALSE, 0);
gtk_widget_show (widget);
- g_object_bind_property_full (
+ e_binding_bind_property_full (
settings, "oaburl",
widget, "sensitive",
G_BINDING_SYNC_CREATE,
@@ -306,7 +306,7 @@ mail_config_ews_gal_constructed (GObject *object)
extension->priv->toggle_button = widget; /* do not reference */
gtk_widget_show (widget);
- g_object_bind_property (
+ e_binding_bind_property (
settings, "oab-offline",
widget, "active",
G_BINDING_BIDIRECTIONAL |
@@ -319,7 +319,7 @@ mail_config_ews_gal_constructed (GObject *object)
gtk_grid_attach (GTK_GRID (container), widget, 0, 1, 1, 1);
gtk_widget_show (widget);
- g_object_bind_property (
+ e_binding_bind_property (
settings, "oab-offline",
widget, "sensitive",
G_BINDING_SYNC_CREATE);
@@ -341,7 +341,7 @@ mail_config_ews_gal_constructed (GObject *object)
extension->priv->combo_box = widget; /* do not reference */
gtk_widget_show (widget);
- g_object_bind_property_full (
+ e_binding_bind_property_full (
settings, "oal-selected",
widget, "active-id",
G_BINDING_BIDIRECTIONAL |
diff --git a/src/configuration/e-mail-config-ews-ooo-page.c b/src/configuration/e-mail-config-ews-ooo-page.c
index de83c1c..42231a6 100644
--- a/src/configuration/e-mail-config-ews-ooo-page.c
+++ b/src/configuration/e-mail-config-ews-ooo-page.c
@@ -446,7 +446,7 @@ mail_config_ews_ooo_page_constructed (GObject *object)
gtk_box_pack_start (GTK_BOX (page), widget, TRUE, TRUE, 0);
gtk_widget_show (widget);
- g_object_bind_property (
+ e_binding_bind_property (
page->priv->disabled_radio_button, "active",
widget, "sensitive",
G_BINDING_SYNC_CREATE |
@@ -461,7 +461,7 @@ mail_config_ews_ooo_page_constructed (GObject *object)
gtk_size_group_add_widget (size_group, widget);
gtk_widget_show (widget);
- g_object_bind_property (
+ e_binding_bind_property (
page->priv->scheduled_radio_button, "active",
widget, "sensitive",
G_BINDING_SYNC_CREATE);
@@ -474,7 +474,7 @@ mail_config_ews_ooo_page_constructed (GObject *object)
page->priv->start_time = widget; /* do not reference */
gtk_widget_show (widget);
- g_object_bind_property (
+ e_binding_bind_property (
page->priv->scheduled_radio_button, "active",
widget, "sensitive",
G_BINDING_SYNC_CREATE);
@@ -486,7 +486,7 @@ mail_config_ews_ooo_page_constructed (GObject *object)
gtk_size_group_add_widget (size_group, widget);
gtk_widget_show (widget);
- g_object_bind_property (
+ e_binding_bind_property (
page->priv->scheduled_radio_button, "active",
widget, "sensitive",
G_BINDING_SYNC_CREATE);
@@ -499,7 +499,7 @@ mail_config_ews_ooo_page_constructed (GObject *object)
page->priv->end_time = widget; /* do not reference */
gtk_widget_show (widget);
- g_object_bind_property (
+ e_binding_bind_property (
page->priv->scheduled_radio_button, "active",
widget, "sensitive",
G_BINDING_SYNC_CREATE);
@@ -596,7 +596,7 @@ mail_config_ews_ooo_page_constructed (GObject *object)
/* XXX Bit of a hack. Since the enum value for "none" is zero,
* sensitize the text view if the combo box has a non-zero
* "active" value (in other words, anything but "none"). */
- g_object_bind_property (
+ e_binding_bind_property (
page->priv->external_audience, "active",
widget, "sensitive",
G_BINDING_SYNC_CREATE);
diff --git a/src/server/camel-ews-settings.c b/src/server/camel-ews-settings.c
index 35146e5..789e616 100644
--- a/src/server/camel-ews-settings.c
+++ b/src/server/camel-ews-settings.c
@@ -611,7 +611,7 @@ camel_ews_settings_init (CamelEwsSettings *settings)
settings->priv = CAMEL_EWS_SETTINGS_GET_PRIVATE (settings);
g_mutex_init (&settings->priv->property_lock);
- g_object_bind_property_full (settings, "hosturl",
+ e_binding_bind_property_full (settings, "hosturl",
settings, "host",
G_BINDING_DEFAULT,
ews_settings_transform_host_url_to_host_cb,
diff --git a/src/server/e-ews-connection.c b/src/server/e-ews-connection.c
index ce7120a..1237c97 100644
--- a/src/server/e-ews-connection.c
+++ b/src/server/e-ews-connection.c
@@ -1792,7 +1792,7 @@ e_ews_connection_init (EEwsConnection *cnc)
/* Do not use G_BINDING_SYNC_CREATE because the property_lock is
* not initialized and we don't have a GProxyResolver yet anyway. */
- g_object_bind_property (
+ e_binding_bind_property (
cnc, "proxy-resolver",
cnc->priv->soup_session, "proxy-resolver",
G_BINDING_DEFAULT);
@@ -2174,7 +2174,7 @@ e_ews_connection_new_full (const gchar *uri,
cnc->priv->impersonate_user = NULL;
}
- g_object_bind_property (
+ e_binding_bind_property (
settings, "timeout",
cnc->priv->soup_session, "timeout",
G_BINDING_SYNC_CREATE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]