aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/groupwise-features
diff options
context:
space:
mode:
authorJohnny Jacob <jjohnny@src.gnome.org>2007-08-17 16:23:18 +0800
committerJohnny Jacob <jjohnny@src.gnome.org>2007-08-17 16:23:18 +0800
commitb8ae4454749711b66e4837320ceb826590004a55 (patch)
tree724f933bbcc2254e80c3b59e4b8e20b41e56902a /plugins/groupwise-features
parent18c39ea2cabf9d7611d8f2320df4342256ba720a (diff)
downloadgsoc2013-evolution-b8ae4454749711b66e4837320ceb826590004a55.tar
gsoc2013-evolution-b8ae4454749711b66e4837320ceb826590004a55.tar.gz
gsoc2013-evolution-b8ae4454749711b66e4837320ceb826590004a55.tar.bz2
gsoc2013-evolution-b8ae4454749711b66e4837320ceb826590004a55.tar.lz
gsoc2013-evolution-b8ae4454749711b66e4837320ceb826590004a55.tar.xz
gsoc2013-evolution-b8ae4454749711b66e4837320ceb826590004a55.tar.zst
gsoc2013-evolution-b8ae4454749711b66e4837320ceb826590004a55.zip
Fix for bug #458715
svn path=/trunk/; revision=34022
Diffstat (limited to 'plugins/groupwise-features')
-rw-r--r--plugins/groupwise-features/ChangeLog7
-rw-r--r--plugins/groupwise-features/proxy.c18
2 files changed, 24 insertions, 1 deletions
diff --git a/plugins/groupwise-features/ChangeLog b/plugins/groupwise-features/ChangeLog
index b8ba9f2396..1d2575c22a 100644
--- a/plugins/groupwise-features/ChangeLog
+++ b/plugins/groupwise-features/ChangeLog
@@ -1,3 +1,10 @@
+2007-08-17 Johnny Jacob <jjohnny@novell.com>
+
+ ** Fix for bug #458715.
+
+ * proxy.c : (proxy_page_changed_cb) : Do not include "<All User
+ Access>" in the list. And use g_malloc0.
+
2007-08-16 Milan Crha <mcrha@redhat.com>
** Fix for bug #466548
diff --git a/plugins/groupwise-features/proxy.c b/plugins/groupwise-features/proxy.c
index 399c1c3776..36553f5c91 100644
--- a/plugins/groupwise-features/proxy.c
+++ b/plugins/groupwise-features/proxy.c
@@ -396,7 +396,7 @@ proxy_dialog_store_widgets_data (EAccount *account, gint32 dialog)
continue;
name = (char *) e_destination_get_name (tmp->data);
- new_proxy = (proxyHandler *) g_malloc (sizeof (proxyHandler));
+ new_proxy = (proxyHandler *) g_malloc0 (sizeof (proxyHandler));
if (name)
new_proxy->proxy_name = g_strdup (name);
@@ -737,6 +737,8 @@ proxy_page_changed_cb (GtkNotebook *notebook, GtkNotebookPage *page, int num, EA
proxyDialogPrivate *priv;
gpointer val;
gint pg_num;
+ GList *list_iter;
+ proxyHandler *aclInstance;
if (g_strrstr (e_account_get_string(account, E_ACCOUNT_SOURCE_URL), "groupwise://")) {
@@ -759,6 +761,20 @@ proxy_page_changed_cb (GtkNotebook *notebook, GtkNotebookPage *page, int num, EA
if (e_gw_connection_get_proxy_access_list(prd->cnc, &priv->proxy_list)!= E_GW_CONNECTION_STATUS_OK)
return FALSE;
+
+
+ list_iter = priv->proxy_list;
+
+ for (;list_iter; list_iter = g_list_next(list_iter)) {
+ aclInstance = (proxyHandler *) list_iter->data;
+
+ /* NOTE: All User Access is not supported */
+ if (!g_ascii_strcasecmp (aclInstance->proxy_name, "<All User Access>")) {
+ priv->proxy_list = g_list_delete_link (priv->proxy_list, list_iter);
+ break;
+ }
+ }
+
proxy_update_tree_view (account);
return TRUE;
}