[evolution-groupwise/gnome-3-2] Bug #651453 - Missing groupwise features



commit 37b0e1fc08a745557203ea82906ebab80a9bb8d0
Author: Vibha Yadav <yvibha suse com>
Date:   Tue Nov 22 21:23:02 2011 +0530

    Bug #651453 - Missing groupwise features
    
    folder uri no more starts with "groupwise://".

 src/plugins/gw-ui.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/src/plugins/gw-ui.c b/src/plugins/gw-ui.c
index e2cb9be..8beac9b 100644
--- a/src/plugins/gw-ui.c
+++ b/src/plugins/gw-ui.c
@@ -52,7 +52,9 @@ is_in_gw_account (EShellView *shell_view,
 	GtkTreeModel *model = NULL;
 	GtkTreeIter iter;
 	gboolean is_store = FALSE, res;
-	gchar *uri = NULL;
+	CamelStore *store;
+	EAccount *account;
+	const gchar *uid;
 	gchar *full_name = NULL;
 
 	if (folder_full_name)
@@ -70,11 +72,13 @@ is_in_gw_account (EShellView *shell_view,
 
 	gtk_tree_model_get (model, &iter,
 		COL_STRING_FULL_NAME, &full_name,
-		COL_STRING_URI, &uri,
+		COL_POINTER_CAMEL_STORE, &store,
 		COL_BOOL_IS_STORE, &is_store,
 		-1);
 
-	res = uri && g_ascii_strncasecmp (uri, "groupwise://", 12) == 0;
+	uid = camel_service_get_uid (CAMEL_SERVICE (store));
+	account = e_get_account_by_uid (uid);
+	res = account->source->url && g_ascii_strncasecmp (account->source->url, "groupwise://", 12) == 0;
 
 	if (is_on_store)
 		*is_on_store = is_store;
@@ -89,8 +93,6 @@ is_in_gw_account (EShellView *shell_view,
 		g_free (full_name);
 	}
 
-	g_free (uri);
-
 	return res;
 }
 



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