[evolution-data-server] Deprecate e_book_backend_set_backend_property().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Deprecate e_book_backend_set_backend_property().
- Date: Sat, 26 Jan 2013 15:19:27 +0000 (UTC)
commit 9480b4e17297d69bce1f0d6006a9ea0652ca8826
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Jan 26 09:06:12 2013 -0500
Deprecate e_book_backend_set_backend_property().
No longer used.
addressbook/libedata-book/e-book-backend.c | 17 ++++-------------
addressbook/libedata-book/e-book-backend.h | 16 +++++++++-------
.../libedata-book/libedata-book-sections.txt | 2 +-
3 files changed, 14 insertions(+), 21 deletions(-)
---
diff --git a/addressbook/libedata-book/e-book-backend.c b/addressbook/libedata-book/e-book-backend.c
index 331a4cc..2f5f04c 100644
--- a/addressbook/libedata-book/e-book-backend.c
+++ b/addressbook/libedata-book/e-book-backend.c
@@ -100,12 +100,7 @@ book_backend_set_backend_property (EBookBackend *backend,
const gchar *prop_name,
const gchar *prop_value)
{
- g_return_if_fail (backend != NULL);
- g_return_if_fail (E_IS_BOOK_BACKEND (backend));
- g_return_if_fail (book != NULL);
- g_return_if_fail (prop_name != NULL);
-
- e_data_book_respond_set_backend_property (book, opid, e_data_book_create_error_fmt (E_DATA_BOOK_STATUS_NOT_SUPPORTED, _("Cannot change value of book property '%s'"), prop_name));
+ /* Do nothing. */
}
static void
@@ -997,6 +992,8 @@ e_book_backend_get_backend_property (EBookBackend *backend,
* which fetching it doesn't overwrite.
*
* Since: 3.2
+ *
+ * Deprecated: 3.8: This function no longer does anything.
**/
void
e_book_backend_set_backend_property (EBookBackend *backend,
@@ -1006,13 +1003,7 @@ e_book_backend_set_backend_property (EBookBackend *backend,
const gchar *prop_name,
const gchar *prop_value)
{
- g_return_if_fail (backend != NULL);
- g_return_if_fail (E_IS_BOOK_BACKEND (backend));
- g_return_if_fail (prop_name != NULL);
- g_return_if_fail (prop_value != NULL);
- g_return_if_fail (E_BOOK_BACKEND_GET_CLASS (backend)->set_backend_property != NULL);
-
- E_BOOK_BACKEND_GET_CLASS (backend)->set_backend_property (backend, book, opid, cancellable, prop_name, prop_value);
+ /* Do nothing. */
}
/**
diff --git a/addressbook/libedata-book/e-book-backend.h b/addressbook/libedata-book/e-book-backend.h
index 573b2d7..9334da5 100644
--- a/addressbook/libedata-book/e-book-backend.h
+++ b/addressbook/libedata-book/e-book-backend.h
@@ -136,6 +136,8 @@ struct _EBookBackendClass {
guint32 opid,
GCancellable *cancellable,
const gchar *prop_name);
+
+ /* This method is deprecated. */
void (*set_backend_property) (EBookBackend *backend,
EDataBook *book,
guint32 opid,
@@ -223,13 +225,6 @@ void e_book_backend_get_backend_property
guint32 opid,
GCancellable *cancellable,
const gchar *prop_name);
-void e_book_backend_set_backend_property
- (EBookBackend *backend,
- EDataBook *book,
- guint32 opid,
- GCancellable *cancellable,
- const gchar *prop_name,
- const gchar *prop_value);
void e_book_backend_open (EBookBackend *backend,
EDataBook *book,
@@ -347,6 +342,13 @@ void e_book_backend_respond_opened (EBookBackend *backend,
#define BOOK_BACKEND_PROPERTY_SUPPORTED_AUTH_METHODS "supported-auth-methods"
gboolean e_book_backend_is_opening (EBookBackend *backend);
+void e_book_backend_set_backend_property
+ (EBookBackend *backend,
+ EDataBook *book,
+ guint32 opid,
+ GCancellable *cancellable,
+ const gchar *prop_name,
+ const gchar *prop_value);
void e_book_backend_foreach_view (EBookBackend *backend,
gboolean (*callback) (EDataBookView *view,
gpointer user_data),
diff --git a/docs/reference/addressbook/libedata-book/libedata-book-sections.txt b/docs/reference/addressbook/libedata-book/libedata-book-sections.txt
index 294d6e4..6eed98b 100644
--- a/docs/reference/addressbook/libedata-book/libedata-book-sections.txt
+++ b/docs/reference/addressbook/libedata-book/libedata-book-sections.txt
@@ -20,7 +20,6 @@ e_book_backend_is_opened
e_book_backend_is_readonly
e_book_backend_is_removed
e_book_backend_get_backend_property
-e_book_backend_set_backend_property
e_book_backend_open
e_book_backend_refresh
e_book_backend_create_contacts
@@ -50,6 +49,7 @@ CLIENT_BACKEND_PROPERTY_OPENED
CLIENT_BACKEND_PROPERTY_OPENING
BOOK_BACKEND_PROPERTY_SUPPORTED_AUTH_METHODS
e_book_backend_is_opening
+e_book_backend_set_backend_property
e_book_backend_foreach_view
<SUBSECTION Standard>
E_BOOK_BACKEND
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]