diff options
author | Sankar P <psankar@novell.com> | 2007-08-13 13:46:00 +0800 |
---|---|---|
committer | Sankarasivasubramanian Pasupathilingam <psankar@src.gnome.org> | 2007-08-13 13:46:00 +0800 |
commit | e7ec0eee4852b4d60a5829f41f4b9392a97fcf43 (patch) | |
tree | 85bf6c0704c942d85ccd49d2d35ff6b92109283b /plugins | |
parent | db349053d4ff7cc2925ed0f0dfed1194024c6a9c (diff) | |
download | gsoc2013-evolution-e7ec0eee4852b4d60a5829f41f4b9392a97fcf43.tar.gz gsoc2013-evolution-e7ec0eee4852b4d60a5829f41f4b9392a97fcf43.tar.zst gsoc2013-evolution-e7ec0eee4852b4d60a5829f41f4b9392a97fcf43.zip |
** Fix for bug #330968
2007-08-13 Sankar P <psankar@novell.com>
** Fix for bug #330968
* proxy.c: (proxy_page_changed_cb):
Fixes a crash on account-editor.
Proxy Preferences Crash Fix.
svn path=/trunk/; revision=33993
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/groupwise-features/ChangeLog | 8 | ||||
-rw-r--r-- | plugins/groupwise-features/proxy.c | 30 |
2 files changed, 25 insertions, 13 deletions
diff --git a/plugins/groupwise-features/ChangeLog b/plugins/groupwise-features/ChangeLog index 05e5546bc2..162cd1d4b3 100644 --- a/plugins/groupwise-features/ChangeLog +++ b/plugins/groupwise-features/ChangeLog @@ -1,3 +1,11 @@ +2007-08-13 Sankar P <psankar@novell.com> + + ** Fix for bug #330968 + + * proxy.c: (proxy_page_changed_cb): + Fixes a crash on account-editor. + Proxy Preferences Crash Fix. + 2007-08-10 Milan Crha <mcrha@redhat.com> ** Fix for bug #327977 diff --git a/plugins/groupwise-features/proxy.c b/plugins/groupwise-features/proxy.c index 03563e3ce7..399c1c3776 100644 --- a/plugins/groupwise-features/proxy.c +++ b/plugins/groupwise-features/proxy.c @@ -738,26 +738,30 @@ proxy_page_changed_cb (GtkNotebook *notebook, GtkNotebookPage *page, int num, EA gpointer val; gint pg_num; - prd = g_object_get_data ((GObject *) account, "prd"); + if (g_strrstr (e_account_get_string(account, E_ACCOUNT_SOURCE_URL), "groupwise://")) { - if (!prd || !prd->priv) - return TRUE; + prd = g_object_get_data ((GObject *) account, "prd"); + + if (!prd || !prd->priv) + return TRUE; - val = g_object_get_data ((GObject *) account, "proxy_tab_num"); + val = g_object_get_data ((GObject *) account, "proxy_tab_num"); - if (!val) - return FALSE; + if (!val) + return FALSE; - pg_num = GPOINTER_TO_INT (val); + pg_num = GPOINTER_TO_INT (val); - if ((pg_num == num) && account->enabled) { - if (!prd->cnc) - prd->cnc = proxy_get_cnc (account, GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (notebook)))); - priv = prd->priv; + if ((pg_num == num) && account->enabled) { + if (!prd->cnc) + prd->cnc = proxy_get_cnc (account, GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (notebook)))); + priv = prd->priv; - if (e_gw_connection_get_proxy_access_list(prd->cnc, &priv->proxy_list)!= E_GW_CONNECTION_STATUS_OK) + if (e_gw_connection_get_proxy_access_list(prd->cnc, &priv->proxy_list)!= E_GW_CONNECTION_STATUS_OK) return FALSE; - proxy_update_tree_view (account); + proxy_update_tree_view (account); + return TRUE; + } } return FALSE; |