aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-04-09 07:51:49 +0800
committerChris Toshok <toshok@src.gnome.org>2001-04-09 07:51:49 +0800
commitf01f5f7c42508df0d19582b65505450ce8e5f07b (patch)
tree88c055016ef022e1d0289cf6ed8afe28cb90143d
parentb96649c9115f9cc099fb456866fb6230087cbde2 (diff)
downloadgsoc2013-evolution-f01f5f7c42508df0d19582b65505450ce8e5f07b.tar
gsoc2013-evolution-f01f5f7c42508df0d19582b65505450ce8e5f07b.tar.gz
gsoc2013-evolution-f01f5f7c42508df0d19582b65505450ce8e5f07b.tar.bz2
gsoc2013-evolution-f01f5f7c42508df0d19582b65505450ce8e5f07b.tar.lz
gsoc2013-evolution-f01f5f7c42508df0d19582b65505450ce8e5f07b.tar.xz
gsoc2013-evolution-f01f5f7c42508df0d19582b65505450ce8e5f07b.tar.zst
gsoc2013-evolution-f01f5f7c42508df0d19582b65505450ce8e5f07b.zip
make sure to notify new clients to the writable status of an already open
2001-04-08 Chris Toshok <toshok@ximian.com> * backend/pas/pas-backend-ldap.c (pas_backend_ldap_add_client): make sure to notify new clients to the writable status of an already open (and authenticated) book. svn path=/trunk/; revision=9206
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/backend/pas/pas-backend-ldap.c8
2 files changed, 12 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index dbbeb12047..03b5d398f9 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,9 @@
+2001-04-08 Chris Toshok <toshok@ximian.com>
+
+ * backend/pas/pas-backend-ldap.c (pas_backend_ldap_add_client):
+ make sure to notify new clients to the writable status of an
+ already open (and authenticated) book.
+
2001-04-04 Kjartan Maraas <kmaraas@gnome.org>
* contact-editor/e-contact-editor.[ch]: Fix headers.
diff --git a/addressbook/backend/pas/pas-backend-ldap.c b/addressbook/backend/pas/pas-backend-ldap.c
index 2aa8a884d4..cc5a36f7db 100644
--- a/addressbook/backend/pas/pas-backend-ldap.c
+++ b/addressbook/backend/pas/pas-backend-ldap.c
@@ -82,6 +82,8 @@ struct _PASBackendLDAPPrivate {
gboolean evolutionPersonSupported;
gboolean evolutionPersonChecked;
+ gboolean writable;
+
/* whether or not there's a request in process on our LDAP* */
LDAPOp *current_op;
GList *pending_ops;
@@ -2037,8 +2039,8 @@ pas_backend_ldap_process_authenticate_user (PASBackend *backend,
pas_book_respond_authenticate_user (book,
ldap_error_to_response (ldap_error));
- if (ldap_error == LDAP_SUCCESS)
- pas_book_report_writable (book, TRUE);
+ bl->priv->writable = (ldap_error == LDAP_SUCCESS);
+ pas_book_report_writable (book, bl->priv->writable);
if (!bl->priv->evolutionPersonChecked)
check_schema_support (bl);
@@ -2238,6 +2240,8 @@ pas_backend_ldap_add_client (PASBackend *backend,
book, GNOME_Evolution_Addressbook_BookListener_Success);
}
+ pas_book_report_writable (book, bl->priv->writable);
+
return TRUE;
}