Deprecate e_cal_backend_set_backend_property().
authorMatthew Barnes <mbarnes@redhat.com>
Sat, 26 Jan 2013 14:47:31 +0000 (09:47 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Sat, 26 Jan 2013 14:54:57 +0000 (09:54 -0500)
No longer used.

calendar/libedata-cal/e-cal-backend.c
calendar/libedata-cal/e-cal-backend.h
docs/reference/calendar/libedata-cal/libedata-cal-sections.txt

index 53d574b..c01afaf 100644 (file)
@@ -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
index 6f53cb2..8b5d63b 100644 (file)
@@ -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),
index 374022d..ae67146 100644 (file)
@@ -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