From 977ccdda60aa36b2c5da52898ab3300adcdbc58f Mon Sep 17 00:00:00 2001 From: Shreyas Srinivasan Date: Mon, 20 Feb 2006 19:18:23 +0000 Subject: Fix more brokenness. doh check if its the proxy page. Need whack on the 2006-02-21 Shreyas Srinivasan * proxy.c: Fix more brokenness. doh check if its the proxy page. Need whack on the head for sucky reckless commit. svn path=/trunk/; revision=31549 --- plugins/groupwise-features/proxy.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'plugins/groupwise-features/proxy.c') diff --git a/plugins/groupwise-features/proxy.c b/plugins/groupwise-features/proxy.c index 02ebe46e50..3b9dad2755 100644 --- a/plugins/groupwise-features/proxy.c +++ b/plugins/groupwise-features/proxy.c @@ -731,14 +731,22 @@ proxy_page_changed_cb (GtkNotebook *notebook, GtkNotebookPage *page, int num, EA { proxyDialog *prd; proxyDialogPrivate *priv; + gpointer val; + gint pg_num; prd = g_object_get_data ((GObject *) account, "prd"); if (!prd || !prd->priv) return TRUE; + val = g_object_get_data ((GObject *) account, "proxy_tab_num"); - if (g_object_get_data ((GObject *) account, "proxy_tab_num") && account->enabled) { + 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; @@ -747,6 +755,7 @@ proxy_page_changed_cb (GtkNotebook *notebook, GtkNotebookPage *page, int num, EA return FALSE; proxy_update_tree_view (account); } + return FALSE; } -- cgit v1.2.3