aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/exchange-operations
diff options
context:
space:
mode:
authorArunprakash <arunp@novell.com>2005-09-15 21:07:10 +0800
committerArunprakash S <arunp@src.gnome.org>2005-09-15 21:07:10 +0800
commitfa6ebe68ac78b583dddc4255e065548fab0d13b1 (patch)
treeba2a3e9008edf68b2fa4c8f56f4a2f215dc6db0c /plugins/exchange-operations
parenta5d4c0f801c80df2425abf749c5d6fed9b804f4b (diff)
downloadgsoc2013-evolution-fa6ebe68ac78b583dddc4255e065548fab0d13b1.tar
gsoc2013-evolution-fa6ebe68ac78b583dddc4255e065548fab0d13b1.tar.gz
gsoc2013-evolution-fa6ebe68ac78b583dddc4255e065548fab0d13b1.tar.bz2
gsoc2013-evolution-fa6ebe68ac78b583dddc4255e065548fab0d13b1.tar.lz
gsoc2013-evolution-fa6ebe68ac78b583dddc4255e065548fab0d13b1.tar.xz
gsoc2013-evolution-fa6ebe68ac78b583dddc4255e065548fab0d13b1.tar.zst
gsoc2013-evolution-fa6ebe68ac78b583dddc4255e065548fab0d13b1.zip
Now checks for the camel provider type, and does nothing for non exchange
2005-09-15 Arunprakash <arunp@novell.com> * exchange-account-setup.c (org_gnome_exchange_show_folder_size_factory) : Now checks for the camel provider type, and does nothing for non exchange providers. ** Fixes #312886. svn path=/trunk/; revision=30350
Diffstat (limited to 'plugins/exchange-operations')
-rw-r--r--plugins/exchange-operations/ChangeLog7
-rw-r--r--plugins/exchange-operations/exchange-account-setup.c13
2 files changed, 20 insertions, 0 deletions
diff --git a/plugins/exchange-operations/ChangeLog b/plugins/exchange-operations/ChangeLog
index 252c6566a6..b5b403b7af 100644
--- a/plugins/exchange-operations/ChangeLog
+++ b/plugins/exchange-operations/ChangeLog
@@ -1,3 +1,10 @@
+2005-09-15 Arunprakash <arunp@novell.com>
+
+ * exchange-account-setup.c
+ (org_gnome_exchange_show_folder_size_factory) : Now checks for the
+ camel provider type, and does nothing for non exchange providers.
+ ** Fixes #312886.
+
2005-09-14 Irene Huang <Irene.Huang@sun.com>
Fix for #316274
diff --git a/plugins/exchange-operations/exchange-account-setup.c b/plugins/exchange-operations/exchange-account-setup.c
index 4a693ef8ab..e21da51c72 100644
--- a/plugins/exchange-operations/exchange-account-setup.c
+++ b/plugins/exchange-operations/exchange-account-setup.c
@@ -900,12 +900,25 @@ org_gnome_exchange_show_folder_size_factory (EPlugin *epl, EConfigHookItemFactor
{
EMConfigTargetFolder *target= (EMConfigTargetFolder *)data->config->target;
CamelFolder *cml_folder = target->folder;
+ CamelService *service;
+ CamelProvider *provider;
ExchangeAccount *account;
GtkWidget *lbl_size, *lbl_size_val;
GtkListStore *model;
GtkVBox *vbx;
GtkHBox *hbx_size;
char *folder_name, *folder_size;
+
+ service = CAMEL_SERVICE (camel_folder_get_parent_store (cml_folder));
+ if (!service)
+ return NULL;
+
+ provider = camel_service_get_provider (service);
+ if (!provider)
+ return NULL;
+
+ if (g_ascii_strcasecmp (provider->protocol, "exchange"))
+ return NULL;
folder_name = (char*) camel_folder_get_name (cml_folder);
if (!folder_name)