[glib] GValueArray: clarify the deprecation warnings



commit 03e84f936fd6f4acbcdf671cc6be5b0690ee7ea6
Author: Dan Winship <danw gnome org>
Date:   Wed Jan 2 13:00:48 2013 -0500

    GValueArray: clarify the deprecation warnings
    
    GValueArray as a whole is deprecated in favor of GArray (with GValue
    elements); warnings like "'g_value_array_get_nth' is deprecated: Use
    'g_array_index' instead" are confusing because they suggest that the
    GArray functions can be used with GValueArrays. Make them say "Use
    'GArray' instead" instead.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=690970

 gobject/gvaluearray.h |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/gobject/gvaluearray.h b/gobject/gvaluearray.h
index 1570818..aca3716 100644
--- a/gobject/gvaluearray.h
+++ b/gobject/gvaluearray.h
@@ -58,44 +58,44 @@ struct _GValueArray
 };
 
 /* --- prototypes --- */
-GLIB_DEPRECATED_IN_2_32_FOR(g_array_get_type)
+GLIB_DEPRECATED_IN_2_32_FOR(GArray)
 GType           g_value_array_get_type       (void) G_GNUC_CONST;
 
-GLIB_DEPRECATED_IN_2_32_FOR(g_array_index)
+GLIB_DEPRECATED_IN_2_32_FOR(GArray)
 GValue*		g_value_array_get_nth	     (GValueArray	*value_array,
 					      guint		 index_);
 
-GLIB_DEPRECATED_IN_2_32_FOR(g_array_new)
+GLIB_DEPRECATED_IN_2_32_FOR(GArray)
 GValueArray*	g_value_array_new	     (guint		 n_prealloced);
 
-GLIB_DEPRECATED_IN_2_32_FOR(g_array_unref)
+GLIB_DEPRECATED_IN_2_32_FOR(GArray)
 void		g_value_array_free	     (GValueArray	*value_array);
 
-GLIB_DEPRECATED_IN_2_32_FOR(g_array_ref)
+GLIB_DEPRECATED_IN_2_32_FOR(GArray)
 GValueArray*	g_value_array_copy	     (const GValueArray *value_array);
 
-GLIB_DEPRECATED_IN_2_32_FOR(g_array_prepend_vals)
+GLIB_DEPRECATED_IN_2_32_FOR(GArray)
 GValueArray*	g_value_array_prepend	     (GValueArray	*value_array,
 					      const GValue	*value);
 
-GLIB_DEPRECATED_IN_2_32_FOR(g_array_append_vals)
+GLIB_DEPRECATED_IN_2_32_FOR(GArray)
 GValueArray*	g_value_array_append	     (GValueArray	*value_array,
 					      const GValue	*value);
 
-GLIB_DEPRECATED_IN_2_32_FOR(g_array_insert_vals)
+GLIB_DEPRECATED_IN_2_32_FOR(GArray)
 GValueArray*	g_value_array_insert	     (GValueArray	*value_array,
 					      guint		 index_,
 					      const GValue	*value);
 
-GLIB_DEPRECATED_IN_2_32_FOR(g_array_remove_index)
+GLIB_DEPRECATED_IN_2_32_FOR(GArray)
 GValueArray*	g_value_array_remove	     (GValueArray	*value_array,
 					      guint		 index_);
 
-GLIB_DEPRECATED_IN_2_32_FOR(g_array_sort)
+GLIB_DEPRECATED_IN_2_32_FOR(GArray)
 GValueArray*	g_value_array_sort	     (GValueArray	*value_array,
 					      GCompareFunc	 compare_func);
 
-GLIB_DEPRECATED_IN_2_32_FOR(g_array_sort_with_data)
+GLIB_DEPRECATED_IN_2_32_FOR(GArray)
 GValueArray*	g_value_array_sort_with_data (GValueArray	*value_array,
 					      GCompareDataFunc	 compare_func,
 					      gpointer		 user_data);



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