From f01f5f7c42508df0d19582b65505450ce8e5f07b Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Sun, 8 Apr 2001 23:51:49 +0000 Subject: make sure to notify new clients to the writable status of an already open 2001-04-08 Chris Toshok * 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 --- addressbook/ChangeLog | 6 ++++++ addressbook/backend/pas/pas-backend-ldap.c | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'addressbook') 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 + + * 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 * 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; } -- cgit v1.2.3