aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/exchange-operations
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2008-02-18 12:44:15 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2008-02-18 12:44:15 +0800
commit13d5584c3c08122661d813de9777be783b1b5877 (patch)
treeefc061871e94538f7f5f9717dffc3a50abce404b /plugins/exchange-operations
parent0cde8c84a17d3b39a7334cfbf98bda53aa661321 (diff)
downloadgsoc2013-evolution-13d5584c3c08122661d813de9777be783b1b5877.tar.gz
gsoc2013-evolution-13d5584c3c08122661d813de9777be783b1b5877.tar.zst
gsoc2013-evolution-13d5584c3c08122661d813de9777be783b1b5877.zip
Fix for bug #339266
2008-02-18 Srinivasa Ragavan <sragavan@novell.com> * Fix for bug #339266 * exchange-account-setup.c: (org_gnome_exchange_show_folder_size_factory): Upstreamed OpenSUSE patch. svn path=/trunk/; revision=35041
Diffstat (limited to 'plugins/exchange-operations')
-rw-r--r--plugins/exchange-operations/ChangeLog8
-rw-r--r--plugins/exchange-operations/exchange-account-setup.c8
2 files changed, 15 insertions, 1 deletions
diff --git a/plugins/exchange-operations/ChangeLog b/plugins/exchange-operations/ChangeLog
index 012dc779b9..a68095cbca 100644
--- a/plugins/exchange-operations/ChangeLog
+++ b/plugins/exchange-operations/ChangeLog
@@ -1,5 +1,13 @@
2008-02-18 Srinivasa Ragavan <sragavan@novell.com>
+ * Fix for bug #339266
+
+ * exchange-account-setup.c:
+ (org_gnome_exchange_show_folder_size_factory): Upstreamed OpenSUSE
+ patch.
+
+2008-02-18 Srinivasa Ragavan <sragavan@novell.com>
+
** Fix for bug #294999
* exchange-folder-subscription.c: (subscribe_to_folder): Upstreamed
diff --git a/plugins/exchange-operations/exchange-account-setup.c b/plugins/exchange-operations/exchange-account-setup.c
index 340cdbab99..afce112de5 100644
--- a/plugins/exchange-operations/exchange-account-setup.c
+++ b/plugins/exchange-operations/exchange-account-setup.c
@@ -953,6 +953,7 @@ org_gnome_exchange_show_folder_size_factory (EPlugin *epl, EConfigHookItemFactor
GtkVBox *vbx;
GtkHBox *hbx_size;
char *folder_name, *folder_size;
+ int mode;
service = CAMEL_SERVICE (camel_folder_get_parent_store (cml_folder));
if (!service)
@@ -965,10 +966,15 @@ org_gnome_exchange_show_folder_size_factory (EPlugin *epl, EConfigHookItemFactor
if (g_ascii_strcasecmp (provider->protocol, "exchange"))
return NULL;
+ account = exchange_operations_get_exchange_account ();
+ exchange_account_is_offline (account, &mode);
+ if (mode == OFFLINE_MODE)
+ return NULL;
+
folder_name = (char*) camel_folder_get_name (cml_folder);
if (!folder_name)
folder_name = g_strdup ("name");
- account = exchange_operations_get_exchange_account ();
+
model = exchange_account_folder_size_get_model (account);
if (model)
folder_size = g_strdup_printf (_("%s KB"), exchange_folder_size_get_val (model, folder_name));