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



commit d0e260d7ff61e61610ec336c303ced8c1ef7761c
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sat Jan 26 09:47:31 2013 -0500

    Deprecate e_cal_backend_set_backend_property().
    
    No longer used.

 calendar/libedata-cal/e-cal-backend.c              |   17 ++++-------------
 calendar/libedata-cal/e-cal-backend.h              |   18 ++++++++++--------
 .../libedata-cal/libedata-cal-sections.txt         |    2 +-
 3 files changed, 15 insertions(+), 22 deletions(-)
---
diff --git a/calendar/libedata-cal/e-cal-backend.c b/calendar/libedata-cal/e-cal-backend.c
index 53d574b..c01afaf 100644
--- a/calendar/libedata-cal/e-cal-backend.c
+++ b/calendar/libedata-cal/e-cal-backend.c
@@ -166,12 +166,7 @@ cal_backend_set_backend_property (ECalBackend *backend,
                                   const gchar *prop_name,
                                   const gchar *prop_value)
 {
-	g_return_if_fail (backend != NULL);
-	g_return_if_fail (E_IS_CAL_BACKEND (backend));
-	g_return_if_fail (cal != NULL);
-	g_return_if_fail (prop_name != NULL);
-
-	e_data_cal_respond_set_backend_property (cal, opid, e_data_cal_create_error_fmt (NotSupported, _("Cannot change value of calendar property '%s'"), prop_name));
+	/* Do nothing. */
 }
 
 static void
@@ -866,6 +861,8 @@ e_cal_backend_get_backend_property (ECalBackend *backend,
  * which fetching it doesn't overwrite.
  *
  * Since: 3.2
+ *
+ * Deprecated: 3.8: This function no longer does anything.
  **/
 void
 e_cal_backend_set_backend_property (ECalBackend *backend,
@@ -875,13 +872,7 @@ e_cal_backend_set_backend_property (ECalBackend *backend,
                                     const gchar *prop_name,
                                     const gchar *prop_value)
 {
-	g_return_if_fail (backend != NULL);
-	g_return_if_fail (E_IS_CAL_BACKEND (backend));
-	g_return_if_fail (prop_name != NULL);
-	g_return_if_fail (prop_value != NULL);
-	g_return_if_fail (E_CAL_BACKEND_GET_CLASS (backend)->set_backend_property != NULL);
-
-	(* E_CAL_BACKEND_GET_CLASS (backend)->set_backend_property) (backend, cal, opid, cancellable, prop_name, prop_value);
+	/* Do nothing. */
 }
 
 static void
diff --git a/calendar/libedata-cal/e-cal-backend.h b/calendar/libedata-cal/e-cal-backend.h
index 6f53cb2..8b5d63b 100644
--- a/calendar/libedata-cal/e-cal-backend.h
+++ b/calendar/libedata-cal/e-cal-backend.h
@@ -147,7 +147,9 @@ struct _ECalBackendClass {
 						 guint32 opid,
 						 GCancellable *cancellable,
 						 const gchar *prop_name);
-        void		(*set_backend_property)	(ECalBackend *backend,
+
+	/* This method is deprecated. */
+	void		(*set_backend_property)	(ECalBackend *backend,
 						 EDataCal *cal,
 						 guint32 opid,
 						 GCancellable *cancellable,
@@ -281,13 +283,6 @@ void		e_cal_backend_get_backend_property
 						 guint32 opid,
 						 GCancellable *cancellable,
 						 const gchar *prop_name);
-void		e_cal_backend_set_backend_property
-						(ECalBackend *backend,
-						 EDataCal *cal,
-						 guint32 opid,
-						 GCancellable *cancellable,
-						 const gchar *prop_name,
-						 const gchar *prop_value);
 
 void		e_cal_backend_open		(ECalBackend *backend,
 						 EDataCal *cal,
@@ -436,6 +431,13 @@ void		e_cal_backend_respond_opened	(ECalBackend *backend,
 #define CLIENT_BACKEND_PROPERTY_OPENING			"opening"
 
 gboolean	e_cal_backend_is_opening	(ECalBackend *backend);
+void		e_cal_backend_set_backend_property
+						(ECalBackend *backend,
+						 EDataCal *cal,
+						 guint32 opid,
+						 GCancellable *cancellable,
+						 const gchar *prop_name,
+						 const gchar *prop_value);
 void		e_cal_backend_foreach_view	(ECalBackend *backend,
 						 gboolean (*callback) (EDataCalView *view,
 								       gpointer user_data),
diff --git a/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt b/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
index 374022d..ae67146 100644
--- a/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
+++ b/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
@@ -27,7 +27,6 @@ e_cal_backend_remove_view
 e_cal_backend_list_views
 e_cal_backend_set_notification_proxy
 e_cal_backend_get_backend_property
-e_cal_backend_set_backend_property
 e_cal_backend_open
 e_cal_backend_refresh
 e_cal_backend_get_object
@@ -59,6 +58,7 @@ e_cal_backend_respond_opened
 CLIENT_BACKEND_PROPERTY_OPENED
 CLIENT_BACKEND_PROPERTY_OPENING
 e_cal_backend_is_opening
+e_cal_backend_set_backend_property
 e_cal_backend_foreach_view
 <SUBSECTION Standard>
 E_CAL_BACKEND



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