[evolution-groupwise] Bug #651453 - Missing groupwise features
- From: Vibha Yadav <yvibha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-groupwise] Bug #651453 - Missing groupwise features
- Date: Wed, 23 Nov 2011 08:47:22 +0000 (UTC)
commit 0e679bbf5ce74cd9d43147ef62f6c4e9504dacdd
Author: Vibha Yadav <yvibha suse com>
Date: Wed Nov 23 14:15:04 2011 +0530
Bug #651453 - Missing groupwise features
Since EAccounts is going to deprecate in some time it would be better to
get CamelService's CamelProvider and check its protocol for "groupwise"
src/plugins/gw-ui.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/plugins/gw-ui.c b/src/plugins/gw-ui.c
index 8beac9b..e80b066 100644
--- a/src/plugins/gw-ui.c
+++ b/src/plugins/gw-ui.c
@@ -53,8 +53,7 @@ is_in_gw_account (EShellView *shell_view,
GtkTreeIter iter;
gboolean is_store = FALSE, res;
CamelStore *store;
- EAccount *account;
- const gchar *uid;
+ CamelProvider *provider;
gchar *full_name = NULL;
if (folder_full_name)
@@ -76,9 +75,9 @@ is_in_gw_account (EShellView *shell_view,
COL_BOOL_IS_STORE, &is_store,
-1);
- 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;
+ provider = camel_service_get_provider (CAMEL_SERVICE (store));
+
+ res = g_strcmp0 (provider->protocol, "groupwise") == 0;
if (is_on_store)
*is_on_store = is_store;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]