aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-account-manager.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-07-28 10:31:47 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-07-28 23:24:49 +0800
commit2c4510e858fcf96e8f3d02f3f92564460752e983 (patch)
tree777c673d5fdaf649fb1c9eabd9357eac622b15f6 /widgets/misc/e-account-manager.c
parent3fe8269156da1b57b0fc7391f5cf07cab6f61606 (diff)
parent067ef5580fc287809958d4503691bfcba2b29ee5 (diff)
downloadgsoc2013-evolution-2c4510e858fcf96e8f3d02f3f92564460752e983.tar
gsoc2013-evolution-2c4510e858fcf96e8f3d02f3f92564460752e983.tar.gz
gsoc2013-evolution-2c4510e858fcf96e8f3d02f3f92564460752e983.tar.bz2
gsoc2013-evolution-2c4510e858fcf96e8f3d02f3f92564460752e983.tar.lz
gsoc2013-evolution-2c4510e858fcf96e8f3d02f3f92564460752e983.tar.xz
gsoc2013-evolution-2c4510e858fcf96e8f3d02f3f92564460752e983.tar.zst
gsoc2013-evolution-2c4510e858fcf96e8f3d02f3f92564460752e983.zip
Merge commit 'EVOLUTION_2_27_5' into kill-bonobo
Diffstat (limited to 'widgets/misc/e-account-manager.c')
-rw-r--r--widgets/misc/e-account-manager.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/widgets/misc/e-account-manager.c b/widgets/misc/e-account-manager.c
index 24b579dee9..8d3d2d211b 100644
--- a/widgets/misc/e-account-manager.c
+++ b/widgets/misc/e-account-manager.c
@@ -97,8 +97,6 @@ account_manager_selection_changed_cb (EAccountManager *manager,
GtkWidget *edit_button;
GtkWidget *delete_button;
GtkWidget *default_button;
- const gchar *url = NULL;
- gboolean has_proxies;
gboolean sensitive;
add_button = manager->priv->add_button;
@@ -110,19 +108,14 @@ account_manager_selection_changed_cb (EAccountManager *manager,
account = e_account_tree_view_get_selected (tree_view);
account_list = e_account_tree_view_get_account_list (tree_view);
- if (account != NULL)
- url = e_account_get_string (account, E_ACCOUNT_SOURCE_URL);
- else
+ if (account == NULL)
gtk_widget_grab_focus (add_button);
- has_proxies = (url != NULL) &&
- e_account_list_account_has_proxies (account_list, account);
-
/* XXX EAccountList misuses const */
default_account = (EAccount *)
e_account_list_get_default (account_list);
- sensitive = (account != NULL) && !has_proxies;
+ sensitive = (account != NULL);
gtk_widget_set_sensitive (edit_button, sensitive);
sensitive = (account != NULL);