evolution-data-server r9149 - in trunk/addressbook: . backends/ldap



Author: abharath
Date: Sun Jul 20 19:32:22 2008
New Revision: 9149
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9149&view=rev

Log:
Committing on behalf of Milan Crha  <mcrha redhat com>

2008-07-21  Milan Crha  <mcrha redhat com>

       ** Fix for bug #236010

       * backends/ldap/e-book-backend-ldap.c:
       (e_book_backend_ldap_load_source): We cannot check on LDAP server
       whether we have general write access on it, thus report we have
       immediately after loading the source successfully. There will be
       a "Permission Deny" message in case we are wrong.
       * backends/ldap/e-book-backend-ldap.c: (ldap_op_finished):
       Clear the status message when the operation finished.



Modified:
   trunk/addressbook/ChangeLog
   trunk/addressbook/backends/ldap/e-book-backend-ldap.c

Modified: trunk/addressbook/backends/ldap/e-book-backend-ldap.c
==============================================================================
--- trunk/addressbook/backends/ldap/e-book-backend-ldap.c	(original)
+++ trunk/addressbook/backends/ldap/e-book-backend-ldap.c	Sun Jul 20 19:32:22 2008
@@ -1087,6 +1087,9 @@
 	g_static_rec_mutex_lock (&bl->priv->op_hash_mutex);
 	g_hash_table_remove (bl->priv->id_to_op, &op->id);
 
+	/* clear the status message too */
+	book_view_notify_status (find_book_view (bl), "");
+
 	/* should handle errors here */
 	g_static_rec_mutex_lock (&eds_ldap_handler_lock);
 	if (bl->priv->ldap)
@@ -4864,9 +4867,11 @@
 #endif
 
 		return GNOME_Evolution_Addressbook_Success;
-	}
-	else
+	} else {
+		e_book_backend_set_is_writable (backend, TRUE);
+		e_book_backend_notify_writable (backend, TRUE);
 		e_book_backend_notify_connection_status (backend, TRUE);
+	}
 
 	/* Online */
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]