[evolution-patches] proxy login only when user clicks on proxy tab [Mailer]
- From: pchenthill <pchenthill novell com>
- To: patches <evolution-patches gnome org>
- Subject: [evolution-patches] proxy login only when user clicks on proxy tab [Mailer]
- Date: Mon, 20 Feb 2006 20:09:35 +0530
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.
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 <pchenthill novell com>
+
+ * proxy.c: (proxy_page_changed_cb): Do the proxy
+ login only when the user clicks the proxy page.
+
2006-02-16 Shreyas Srinivasan <sshreyas novell com>
* 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]