[evolution] online-accounts: Set GoaAccount ID in calendar and contact sources.



commit f525838816519b904aa95331306fa56c9a4b586c
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon Jun 27 14:23:01 2011 -0400

    online-accounts: Set GoaAccount ID in calendar and contact sources.
    
    Forgot that part... kind of important.

 modules/online-accounts/e-online-accounts-google.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/modules/online-accounts/e-online-accounts-google.c b/modules/online-accounts/e-online-accounts-google.c
index 3228079..4a70730 100644
--- a/modules/online-accounts/e-online-accounts-google.c
+++ b/modules/online-accounts/e-online-accounts-google.c
@@ -311,6 +311,9 @@ online_accounts_google_sync_calendar (GoaObject *goa_object,
 	 *     will authenticate itself if it sees a GOA ID. */
 	e_source_set_property (source, "auth", "1");
 
+	string = goa_account_get_id (goa_account);
+	e_source_set_property (source, GOA_KEY, string);
+
 	if (new_source) {
 		e_source_group_add_source (source_group, source, -1);
 		g_object_unref (source);
@@ -368,6 +371,9 @@ online_accounts_google_sync_contacts (GoaObject *goa_object,
 	 *     will authenticate itself if it sees a GOA ID. */
 	e_source_set_property (source, "auth", "plain/password");
 
+	string = goa_account_get_id (goa_account);
+	e_source_set_property (source, GOA_KEY, string);
+
 	if (new_source) {
 		e_source_group_add_source (source_group, source, -1);
 		g_object_unref (source);



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