[evolution-data-server] Deprecate CLIENT_BACKEND_PROPERTY_OPENED.



commit bc0e685a4de9df9cc1c943cebad30f68745e9eb4
Author: Matthew Barnes <mbarnes redhat com>
Date:   Fri Jan 25 14:35:49 2013 -0500

    Deprecate CLIENT_BACKEND_PROPERTY_OPENED.
    
    Clients don't need to care if they're fully opened anymore.

 addressbook/libedata-book/e-book-backend.c         |    2 +-
 addressbook/libedata-book/e-book-backend.h         |   21 ++++++++++-------
 calendar/libedata-cal/e-cal-backend.c              |    2 +-
 calendar/libedata-cal/e-cal-backend.h              |   21 ++++++++++-------
 .../libedata-book/libedata-book-sections.txt       |    2 +-
 .../libedata-cal/libedata-cal-sections.txt         |    2 +-
 .../libedataserver/libedataserver-sections.txt     |    2 +-
 libedataserver/e-client.h                          |   23 +++++++++++--------
 8 files changed, 42 insertions(+), 33 deletions(-)
---
diff --git a/addressbook/libedata-book/e-book-backend.c b/addressbook/libedata-book/e-book-backend.c
index 16316cd..e8b177d 100644
--- a/addressbook/libedata-book/e-book-backend.c
+++ b/addressbook/libedata-book/e-book-backend.c
@@ -78,7 +78,7 @@ book_backend_get_backend_property (EBookBackend *backend,
 	g_return_if_fail (prop_name != NULL);
 
 	if (g_str_equal (prop_name, CLIENT_BACKEND_PROPERTY_OPENED)) {
-		e_data_book_respond_get_backend_property (book, opid, NULL, e_book_backend_is_opened (backend) ? "TRUE" : "FALSE");
+		e_data_book_respond_get_backend_property (book, opid, NULL, "TRUE");
 	} else if (g_str_equal (prop_name, CLIENT_BACKEND_PROPERTY_OPENING)) {
 		e_data_book_respond_get_backend_property (book, opid, NULL, e_book_backend_is_opening (backend) ? "TRUE" : "FALSE");
 	} else if (g_str_equal (prop_name, CLIENT_BACKEND_PROPERTY_ONLINE)) {
diff --git a/addressbook/libedata-book/e-book-backend.h b/addressbook/libedata-book/e-book-backend.h
index 2b60d72..50956d0 100644
--- a/addressbook/libedata-book/e-book-backend.h
+++ b/addressbook/libedata-book/e-book-backend.h
@@ -52,15 +52,6 @@
 	((obj), E_TYPE_BOOK_BACKEND, EBookBackendClass))
 
 /**
- * CLIENT_BACKEND_PROPERTY_OPENED:
- *
- * FIXME: Document me.
- *
- * Since: 3.2
- **/
-#define CLIENT_BACKEND_PROPERTY_OPENED			"opened"
-
-/**
  * CLIENT_BACKEND_PROPERTY_OPENING:
  *
  * FIXME: Document me.
@@ -333,6 +324,18 @@ void		e_book_backend_respond_opened	(EBookBackend *backend,
 
 #ifndef EDS_DISABLE_DEPRECATED
 /**
+ * CLIENT_BACKEND_PROPERTY_OPENED:
+ *
+ * FIXME: Document me.
+ *
+ * Since: 3.2
+ *
+ * Deprecated: 3.8: Clients don't need to care if they're fully opened
+ *                  anymore.  This property will always return %TRUE.
+ **/
+#define CLIENT_BACKEND_PROPERTY_OPENED			"opened"
+
+/**
  * BOOK_BACKEND_PROPERTY_SUPPORTED_AUTH_METHODS:
  *
  * Since: 3.2
diff --git a/calendar/libedata-cal/e-cal-backend.c b/calendar/libedata-cal/e-cal-backend.c
index 7986d8c..06d410f 100644
--- a/calendar/libedata-cal/e-cal-backend.c
+++ b/calendar/libedata-cal/e-cal-backend.c
@@ -144,7 +144,7 @@ cal_backend_get_backend_property (ECalBackend *backend,
 	g_return_if_fail (prop_name != NULL);
 
 	if (g_str_equal (prop_name, CLIENT_BACKEND_PROPERTY_OPENED)) {
-		e_data_cal_respond_get_backend_property (cal, opid, NULL, e_cal_backend_is_opened (backend) ? "TRUE" : "FALSE");
+		e_data_cal_respond_get_backend_property (cal, opid, NULL, "TRUE");
 	} else if (g_str_equal (prop_name, CLIENT_BACKEND_PROPERTY_OPENING)) {
 		e_data_cal_respond_get_backend_property (cal, opid, NULL, e_cal_backend_is_opening (backend) ? "TRUE" : "FALSE");
 	} else if (g_str_equal (prop_name, CLIENT_BACKEND_PROPERTY_ONLINE)) {
diff --git a/calendar/libedata-cal/e-cal-backend.h b/calendar/libedata-cal/e-cal-backend.h
index bb41ab3..84c36d0 100644
--- a/calendar/libedata-cal/e-cal-backend.h
+++ b/calendar/libedata-cal/e-cal-backend.h
@@ -52,15 +52,6 @@
 	((obj), E_TYPE_CAL_BACKEND, ECalBackendClass))
 
 /**
- * CLIENT_BACKEND_PROPERTY_OPENED:
- *
- * FIXME: Document me.
- *
- * Since: 3.2
- **/
-#define CLIENT_BACKEND_PROPERTY_OPENED			"opened"
-
-/**
  * CLIENT_BACKEND_PROPERTY_OPENING:
  *
  * FIXME: Document me.
@@ -430,6 +421,18 @@ void		e_cal_backend_respond_opened	(ECalBackend *backend,
 						 GError *error);
 
 #ifndef EDS_DISABLE_DEPRECATED
+/**
+ * CLIENT_BACKEND_PROPERTY_OPENED:
+ *
+ * FIXME: Document me.
+ *
+ * Since: 3.2
+ *
+ * Deprecated: 3.8: Clients don't need to care if they're fully opened
+ *                  anymore.  This property will always return %TRUE.
+ **/
+#define CLIENT_BACKEND_PROPERTY_OPENED			"opened"
+
 void		e_cal_backend_foreach_view	(ECalBackend *backend,
 						 gboolean (*callback) (EDataCalView *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 b1493bd..8d6e832 100644
--- a/docs/reference/addressbook/libedata-book/libedata-book-sections.txt
+++ b/docs/reference/addressbook/libedata-book/libedata-book-sections.txt
@@ -2,7 +2,6 @@
 <FILE>e-book-backend</FILE>
 <TITLE>EBookBackend</TITLE>
 EBookBackend
-CLIENT_BACKEND_PROPERTY_OPENED
 CLIENT_BACKEND_PROPERTY_OPENING
 CLIENT_BACKEND_PROPERTY_ONLINE
 CLIENT_BACKEND_PROPERTY_READONLY
@@ -49,6 +48,7 @@ e_book_backend_sync
 e_book_backend_set_is_removed
 e_book_backend_respond_opened
 <SUBSECTION Deprecated>
+CLIENT_BACKEND_PROPERTY_OPENED
 BOOK_BACKEND_PROPERTY_SUPPORTED_AUTH_METHODS
 e_book_backend_foreach_view
 <SUBSECTION Standard>
diff --git a/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt b/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
index e50985a..dc568fe 100644
--- a/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
+++ b/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
@@ -2,7 +2,6 @@
 <FILE>e-cal-backend</FILE>
 <TITLE>ECalBackend</TITLE>
 ECalBackend
-CLIENT_BACKEND_PROPERTY_OPENED
 CLIENT_BACKEND_PROPERTY_OPENING
 CLIENT_BACKEND_PROPERTY_ONLINE
 CLIENT_BACKEND_PROPERTY_READONLY
@@ -59,6 +58,7 @@ e_cal_backend_empty_cache
 e_cal_backend_set_is_removed
 e_cal_backend_respond_opened
 <SUBSECTION Deprecated>
+CLIENT_BACKEND_PROPERTY_OPENED
 e_cal_backend_foreach_view
 <SUBSECTION Standard>
 E_CAL_BACKEND
diff --git a/docs/reference/libedataserver/libedataserver-sections.txt b/docs/reference/libedataserver/libedataserver-sections.txt
index 9e44415..5fd1dfc 100644
--- a/docs/reference/libedataserver/libedataserver-sections.txt
+++ b/docs/reference/libedataserver/libedataserver-sections.txt
@@ -42,7 +42,6 @@ E_CLIENT_ERROR
 EClientError
 e_client_error_to_string
 e_client_error_create
-CLIENT_BACKEND_PROPERTY_OPENED
 CLIENT_BACKEND_PROPERTY_OPENING
 CLIENT_BACKEND_PROPERTY_ONLINE
 CLIENT_BACKEND_PROPERTY_READONLY
@@ -78,6 +77,7 @@ e_client_util_parse_comma_strings
 EClientErrorsList
 e_client_util_unwrap_dbus_error
 <SUBSECTION Deprecated>
+CLIENT_BACKEND_PROPERTY_OPENED
 e_client_remove
 e_client_remove_finish
 e_client_remove_sync
diff --git a/libedataserver/e-client.h b/libedataserver/e-client.h
index bde665c..cd00513 100644
--- a/libedataserver/e-client.h
+++ b/libedataserver/e-client.h
@@ -50,16 +50,6 @@
 	((obj), E_TYPE_CLIENT, EClientClass))
 
 /**
- * CLIENT_BACKEND_PROPERTY_OPENED:
- *
- * The "opened" property is "TRUE" when the client is fully opened,
- * "FALSE" at all other times.
- *
- * Since: 3.2
- **/
-#define CLIENT_BACKEND_PROPERTY_OPENED			"opened"
-
-/**
  * CLIENT_BACKEND_PROPERTY_OPENING:
  *
  * The "opening" property is "TRUE" when the client is in the process of
@@ -410,6 +400,19 @@ gboolean	e_client_util_unwrap_dbus_error	(GError *dbus_error,
 						 gboolean fail_when_none_matched);
 
 #ifndef EDS_DISABLE_DEPRECATED
+/**
+ * CLIENT_BACKEND_PROPERTY_OPENED:
+ *
+ * The "opened" property is "TRUE" when the client is fully opened,
+ * "FALSE" at all other times.
+ *
+ * Since: 3.2
+ *
+ * Deprecated: 3.8: Clients don't need to care if they're fully opened
+ *                  anymore.  This property will always return %TRUE.
+ **/
+#define CLIENT_BACKEND_PROPERTY_OPENED			"opened"
+
 void		e_client_remove			(EClient *client,
 						 GCancellable *cancellable,
 						 GAsyncReadyCallback callback,



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