proxy login only when user clicks on proxy tab [Mailer]

pchenthill <[email protected]>
Newsgroups gmane.comp.gnome.evolution.patches
Message-ID <[email protected]>
Hi,
    Have attached the fix for the bug. Compare the current page number
with the proxy tab's page number before trying to get a connection.

thanks, Chenthill.

_______________________________________________
Evolution-patches mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/evolution-patches
proxy.diff (text/x-patch, 1.5 KB)
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/plugins/groupwise-features/ChangeLog,v
retrieving revision 1.52
diff -u -p -r1.52 ChangeLog
--- ChangeLog	20 Feb 2006 11:47:44 -0000	1.52
+++ ChangeLog	20 Feb 2006 14:24:43 -0000
@@ -1,3 +1,8 @@
+2006-02-20  Chenthill Palanisamy  <[email protected]>
+
+	* proxy.c: (proxy_page_changed_cb): Do the proxy
+	login only when the user clicks the proxy page.
+
 2006-02-16  Shreyas Srinivasan  <[email protected]>
 
 	* proxy.c: Fix more brokenness. doh check if its the proxy
Index: proxy.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/groupwise-features/proxy.c,v
retrieving revision 1.19
diff -u -p -r1.19 proxy.c
--- proxy.c	20 Feb 2006 11:47:44 -0000	1.19
+++ proxy.c	20 Feb 2006 14:24:44 -0000
@@ -731,14 +731,20 @@ proxy_page_changed_cb (GtkNotebook *note
 {
 	proxyDialog *prd;
 	proxyDialogPrivate *priv;
+	gpointer val;
+	gint pg_num;
 
 	prd = g_object_get_data ((GObject *) account, "prd");
 
 	if (!prd || !prd->priv)
 		return TRUE;
-
-
-	if (g_object_get_data ((GObject *) account, "proxy_tab_num") && account->enabled) {
+	
+	val = g_object_get_data ((GObject *) account, "proxy_tab_num");
+	if (!val)
+		return FALSE;
+	pg_num = GPOINTER_TO_INT (val);
+       	
+	if ((pg_num == num) && account->enabled) {
 		if (!prd->cnc)
 			prd->cnc = proxy_get_cnc(account);	
 		 priv = prd->priv;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.