From 4dab3a631e5197c6e8f660f5eb519a5b74bb8dff Mon Sep 17 00:00:00 2001 From: Shreyas Srinivasan Date: Thu, 16 Feb 2006 10:54:01 +0000 Subject: Initialize connection only when the proxy tab is clicked. 2006-02-16 Shreyas Srinivasan * proxy.c: Initialize connection only when the proxy tab is clicked. svn path=/trunk/; revision=31535 --- plugins/groupwise-features/ChangeLog | 5 +++++ plugins/groupwise-features/proxy.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/plugins/groupwise-features/ChangeLog b/plugins/groupwise-features/ChangeLog index 07591553d3..6cb1058539 100644 --- a/plugins/groupwise-features/ChangeLog +++ b/plugins/groupwise-features/ChangeLog @@ -1,3 +1,8 @@ +2006-02-16 Shreyas Srinivasan + + * proxy.c: Initialize connection only when the proxy tab is + clicked. + 2006-02-08 Parthasarathi Susarla ** See bug 326348 diff --git a/plugins/groupwise-features/proxy.c b/plugins/groupwise-features/proxy.c index 22d656b2f2..f6954aa335 100644 --- a/plugins/groupwise-features/proxy.c +++ b/plugins/groupwise-features/proxy.c @@ -202,6 +202,7 @@ proxy_dialog_init (GObject *object) prd->priv = priv; + prd->cnc = NULL; priv->tab_dialog = NULL; priv->xml = NULL; priv->xml_tab = NULL; @@ -689,8 +690,6 @@ org_gnome_proxy (EPlugin *epl, EConfigHookItemFactoryData *data) g_signal_connect (removeProxy, "clicked", G_CALLBACK(proxy_remove_account), account); g_signal_connect (editProxy, "clicked", G_CALLBACK(proxy_edit_account), account); - prd->cnc = proxy_get_cnc(account); - priv->proxy_list = NULL; } else if (account->enabled){ GtkWidget *label; @@ -737,6 +736,9 @@ proxy_page_changed_cb (GtkNotebook *notebook, GtkNotebookPage *page, int num, EA if (!prd || !prd->priv) return TRUE; + + if (!prd->cnc) + prd->cnc = proxy_get_cnc(account); priv = prd->priv; -- cgit v1.2.3