Deprecate e_util_copy_string_slist().
authorMatthew Barnes <mbarnes@redhat.com>
Sat, 12 Jan 2013 20:14:29 +0000 (15:14 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Sat, 12 Jan 2013 20:14:29 +0000 (15:14 -0500)
Use g_slist_copy_deep() instead, and optionally g_slist_concat() to
concatenate the copied list to another GSList.

docs/reference/libedataserver/libedataserver-sections.txt
libedataserver/e-data-server-util.c
libedataserver/e-data-server-util.h

index 9e12903..f97d9a4 100644 (file)
@@ -1168,7 +1168,6 @@ e_utf8_strftime
 e_strftime
 e_util_slist_to_strv
 e_util_strv_to_slist
-e_util_copy_string_slist
 e_util_copy_object_slist
 e_util_free_nullable_object_slist
 e_queue_transfer
@@ -1203,6 +1202,7 @@ e_named_parameters_test
 <SUBSECTION Deprecated>
 e_util_free_string_slist
 e_util_free_object_slist
+e_util_copy_string_slist
 <SUBSECTION Standard>
 e_named_parameters_get_type
 </SECTION>
index da7dbcc..07c0908 100644 (file)
@@ -944,6 +944,10 @@ e_util_strv_to_slist (const gchar * const *strv)
  * Returned pointer can be freed with e_util_free_string_slist().
  *
  * Since: 3.4
+ *
+ * Deprecated: 3.8: Use g_slist_copy_deep() instead, and optionally
+ *                  g_slist_concat() to concatenate the copied list
+ *                  to another #GSList.
  **/
 GSList *
 e_util_copy_string_slist (GSList *copy_to,
index 4212c9b..bb7b107 100644 (file)
@@ -73,7 +73,6 @@ gsize         e_strftime                      (gchar *string,
 
 gchar **       e_util_slist_to_strv            (const GSList *strings);
 GSList *       e_util_strv_to_slist            (const gchar * const *strv);
-GSList *       e_util_copy_string_slist        (GSList *copy_to, const GSList *strings);
 GSList *       e_util_copy_object_slist        (GSList *copy_to, const GSList *objects);
 void           e_util_free_nullable_object_slist
                                                (GSList *objects);
@@ -166,6 +165,8 @@ gboolean    e_named_parameters_test         (const ENamedParameters *parameters,
 #ifndef EDS_DISABLE_DEPRECATED
 void           e_util_free_string_slist        (GSList *strings);
 void           e_util_free_object_slist        (GSList *objects);
+GSList *       e_util_copy_string_slist        (GSList *copy_to,
+                                                const GSList *strings);
 #endif /* EDS_DISABLE_DEPRECATED */
 
 G_END_DECLS