[evolution-data-server] Deprecate e_data_book_report_opened().



commit 7d606f9b01731b09b2e5df8ab9420ebe6f1941bd
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue Jan 29 15:46:42 2013 -0500

    Deprecate e_data_book_report_opened().
    
    This function no longer does anything.

 addressbook/libedata-book/e-book-backend.c         |    4 ----
 addressbook/libedata-book/e-data-book.c            |   12 +++---------
 addressbook/libedata-book/e-data-book.h            |    4 ++--
 .../libedata-book/libedata-book-sections.txt       |    2 +-
 4 files changed, 6 insertions(+), 16 deletions(-)
---
diff --git a/addressbook/libedata-book/e-book-backend.c b/addressbook/libedata-book/e-book-backend.c
index e03b1a5..948dca1 100644
--- a/addressbook/libedata-book/e-book-backend.c
+++ b/addressbook/libedata-book/e-book-backend.c
@@ -1323,16 +1323,12 @@ e_book_backend_notify_opened (EBookBackend *backend,
                               GError *error)
 {
 	EBookBackendPrivate *priv;
-	GList *clients;
 
 	priv = backend->priv;
 	g_mutex_lock (&priv->clients_mutex);
 
 	priv->opened = error == NULL;
 
-	for (clients = priv->clients; clients != NULL; clients = g_list_next (clients))
-		e_data_book_report_opened (E_DATA_BOOK (clients->data), error);
-
 	g_mutex_unlock (&priv->clients_mutex);
 
 	if (error)
diff --git a/addressbook/libedata-book/e-data-book.c b/addressbook/libedata-book/e-data-book.c
index f242967..372647f 100644
--- a/addressbook/libedata-book/e-data-book.c
+++ b/addressbook/libedata-book/e-data-book.c
@@ -1234,20 +1234,14 @@ e_data_book_report_online (EDataBook *book,
  * including successfull authentication to the server/storage.
  *
  * Since: 3.2
+ *
+ * Deprecated: 3.8: This function no longer does anything.
  **/
 void
 e_data_book_report_opened (EDataBook *book,
                            const GError *error)
 {
-	gchar **strv_error;
-
-	g_return_if_fail (E_IS_DATA_BOOK (book));
-
-	strv_error = e_gdbus_templates_encode_error (error);
-
-	e_gdbus_book_emit_opened (book->priv->dbus_interface, (const gchar * const *) strv_error);
-
-	g_strfreev (strv_error);
+	/* Do nothing. */
 }
 
 /**
diff --git a/addressbook/libedata-book/e-data-book.h b/addressbook/libedata-book/e-data-book.h
index 7ca9c20..a1b7b7a 100644
--- a/addressbook/libedata-book/e-data-book.h
+++ b/addressbook/libedata-book/e-data-book.h
@@ -199,8 +199,6 @@ void		e_data_book_report_readonly	(EDataBook *book,
 						 gboolean readonly);
 void		e_data_book_report_online	(EDataBook *book,
 						 gboolean is_online);
-void		e_data_book_report_opened	(EDataBook *book,
-						 const GError *error);
 void		e_data_book_report_backend_property_changed
 						(EDataBook *book,
 						 const gchar *prop_name,
@@ -214,6 +212,8 @@ void		e_data_book_respond_set_backend_property
 						(EDataBook *book,
 						 guint32 opid,
 						 GError *error);
+void		e_data_book_report_opened	(EDataBook *book,
+						 const GError *error);
 #endif /* EDS_DISABLE_DEPRECATED */
 
 G_END_DECLS
diff --git a/docs/reference/addressbook/libedata-book/libedata-book-sections.txt b/docs/reference/addressbook/libedata-book/libedata-book-sections.txt
index b4030df..387d5b7 100644
--- a/docs/reference/addressbook/libedata-book/libedata-book-sections.txt
+++ b/docs/reference/addressbook/libedata-book/libedata-book-sections.txt
@@ -283,11 +283,11 @@ e_data_book_respond_get_contact_list_uids
 e_data_book_report_error
 e_data_book_report_readonly
 e_data_book_report_online
-e_data_book_report_opened
 e_data_book_report_backend_property_changed
 e_data_book_string_slist_to_comma_string
 <SUBSECTION Deprecated>
 e_data_book_respond_set_backend_property
+e_data_book_report_opened
 <SUBSECTION Standard>
 E_DATA_BOOK
 E_IS_DATA_BOOK



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