From 9c7834b5d40ddcddc69af86ea3f68da3409cd2e0 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 7 Oct 2012 13:24:53 -0400 Subject: [PATCH] Deprecate e_book_backend_foreach_view(). Use e_book_backend_list_views() instead. --- addressbook/libedata-book/e-book-backend.c | 2 ++ addressbook/libedata-book/e-book-backend.h | 11 +++++++---- .../addressbook/libedata-book/libedata-book-sections.txt | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/addressbook/libedata-book/e-book-backend.c b/addressbook/libedata-book/e-book-backend.c index 022032a..96ec351 100644 --- a/addressbook/libedata-book/e-book-backend.c +++ b/addressbook/libedata-book/e-book-backend.c @@ -872,6 +872,8 @@ e_book_backend_list_views (EBookBackend *backend) * @callback returns %FALSE to stop further processing. * * Since: 3.2 + * + * Deprecated: 3.8: Use e_book_backend_list_views() instead. **/ void e_book_backend_foreach_view (EBookBackend *backend, diff --git a/addressbook/libedata-book/e-book-backend.h b/addressbook/libedata-book/e-book-backend.h index fcdafd9..8ce6655 100644 --- a/addressbook/libedata-book/e-book-backend.h +++ b/addressbook/libedata-book/e-book-backend.h @@ -306,10 +306,6 @@ void e_book_backend_add_view (EBookBackend *backend, void e_book_backend_remove_view (EBookBackend *backend, EDataBookView *view); GList * e_book_backend_list_views (EBookBackend *backend); -void e_book_backend_foreach_view (EBookBackend *backend, - gboolean (*callback) (EDataBookView *view, - gpointer user_data), - gpointer user_data); void e_book_backend_notify_update (EBookBackend *backend, const EContact *contact); @@ -341,6 +337,13 @@ void e_book_backend_respond_opened (EBookBackend *backend, guint32 opid, GError *error); +#ifndef EDS_DISABLE_DEPRECATED +void e_book_backend_foreach_view (EBookBackend *backend, + gboolean (*callback) (EDataBookView *view, + gpointer user_data), + gpointer user_data); +#endif /* EDS_DISABLE_DEPRECATED */ + G_END_DECLS #endif /* E_BOOK_BACKEND_H */ diff --git a/docs/reference/addressbook/libedata-book/libedata-book-sections.txt b/docs/reference/addressbook/libedata-book/libedata-book-sections.txt index 8fa4904..6089dee 100644 --- a/docs/reference/addressbook/libedata-book/libedata-book-sections.txt +++ b/docs/reference/addressbook/libedata-book/libedata-book-sections.txt @@ -36,7 +36,6 @@ e_book_backend_stop_view e_book_backend_add_view e_book_backend_remove_view e_book_backend_list_views -e_book_backend_foreach_view e_book_backend_notify_update e_book_backend_notify_remove e_book_backend_notify_complete @@ -48,6 +47,7 @@ e_book_backend_notify_property_changed e_book_backend_sync e_book_backend_set_is_removed e_book_backend_respond_opened +e_book_backend_foreach_view E_BOOK_BACKEND E_IS_BOOK_BACKEND -- 2.7.4