[evolution-ews] Bug 654940 - Fetch url even works in offline



commit d3338f1a3d90bfed25f1e15bd8c418555b0af550
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Wed Nov 23 14:00:15 2011 +0530

    Bug 654940 - Fetch url even works in offline

 .../exchange-ews-account-setup.c                   |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/account-setup-eplugin/exchange-ews-account-setup.c b/src/account-setup-eplugin/exchange-ews-account-setup.c
index ff553dd..e48d05d 100644
--- a/src/account-setup-eplugin/exchange-ews-account-setup.c
+++ b/src/account-setup-eplugin/exchange-ews-account-setup.c
@@ -195,6 +195,7 @@ GtkWidget *
 org_gnome_exchange_ews_account_setup (EPlugin *epl, EConfigHookItemFactoryData *data)
 {
 	EMConfigTargetSettings *target_account;
+	EShell *shell;
 	CamelSettings *settings;
 	CamelEwsSettings *ews_settings;
 	CamelNetworkSettings *network_settings;
@@ -295,6 +296,11 @@ org_gnome_exchange_ews_account_setup (EPlugin *epl, EConfigHookItemFactoryData *
 	gtk_table_attach (GTK_TABLE (data->parent), oab_url, 1, 2, row, row+1, GTK_FILL|GTK_EXPAND, GTK_FILL, 0, 0);
 	row++;
 
+	/* If evolution is offline, dsensitize fetch button and oab entry */
+	shell = e_shell_get_default ();
+	if (!e_shell_get_online (shell))
+		gtk_widget_set_sensitive (auto_discover, FALSE);
+
 	return hbox;
 }
 



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