mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
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
This commit is contained in:
parent
af27baaaef
commit
03e84f936f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user