Index: ./gui/widgets/e-addressbook-view.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/widgets/e-addressbook-view.c,v
retrieving revision 1.183
diff -u -p -r1.183 e-addressbook-view.c
--- ./gui/widgets/e-addressbook-view.c	10 Jul 2006 10:56:07 -0000	1.183
+++ ./gui/widgets/e-addressbook-view.c	25 Jul 2006 05:09:01 -0000
@@ -1892,6 +1892,16 @@ eab_view_print_preview(EABView *view)
 #endif
 }
 
+/* callback function to handle removal of contacts for 
+ * which a user doesnt have write permission  
+ */
+static void delete_contacts_cb (EBook *book,  EBookStatus status,  gpointer closure)
+{
+	if ( status == E_BOOK_ERROR_PERMISSION_DENIED ) {
+                e_error_run (NULL, "addressbook:contact-delete-error", NULL);
+        }
+}
+
 void
 eab_view_delete_selection(EABView *view, gboolean is_delete)
 {
@@ -1930,10 +1940,9 @@ eab_view_delete_selection(EABView *view,
 		}
 
 		/* Remove the cards all at once. */
-		/* XXX no callback specified... ugh */
 		e_book_async_remove_contacts (view->book,
 					      ids,
-					      NULL,
+					      delete_contacts_cb,
 					      NULL);
 			
 		g_list_free (ids);
@@ -1942,10 +1951,9 @@ eab_view_delete_selection(EABView *view,
 		for (l=list;l;l=g_list_next(l)) {
 			contact = l->data;
 			/* Remove the card. */
-			/* XXX no callback specified... ugh */
 			e_book_async_remove_contact (view->book,
 						     contact,
-						     NULL,
+						     delete_contacts_cb,
 						     NULL);
 		}
 	}
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/ChangeLog,v
retrieving revision 1.2094
diff -u -p -r1.2094 ChangeLog
--- ChangeLog	19 Jul 2006 10:40:43 -0000	1.2094
+++ ChangeLog	25 Jul 2006 05:09:15 -0000
@@ -1,3 +1,8 @@
+2006-07-25  Vandana Shenoy .B  <shvandana@novell.com>
+	** Fixes bug #260403
+	* gui/widgets/e-addressbook-view.c: Added a call-back function
+	* addressbook.error.xml: Added a new error message
+
 2006-07-19  Devashish Sharma  <sdevashish@novell.com>
 
 	* addressbook/gui/widgets/e-minicard.c :
Index: addressbook.error.xml
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/addressbook.error.xml,v
retrieving revision 1.5
diff -u -p -r1.5 addressbook.error.xml
--- addressbook.error.xml	1 Jan 2006 13:56:31 -0000	1.5
+++ addressbook.error.xml	25 Jul 2006 05:09:29 -0000
@@ -108,4 +108,17 @@
   <_secondary>Currently you can access only GroupWise System Address Book from Evolution. Please use some other GroupWise mail client once, to get your GroupWise Frequent Contacts and Groupwise Personal Contacts folders.</_secondary>
  </error>
 
+ <error id="contact-delete-error" type="warning">
+  <_primary>Failed to delete a contact</_primary>
+  <_secondary>Permission Denied</_secondary>
+ </error>
+
 </error-list>
+
+
+
+
+
+
+
+
