mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
Annotate various types and macros as deprecated
These have all been documented as deprecated for a long time, but we’ve
never had a way to programmatically mark them as deprecated. Do that
now.
This is based on the list of deprecations from the reverted commit
80fcb1bc2
.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Fixes: #638
This commit is contained in:
@@ -452,7 +452,7 @@ G_BEGIN_DECLS
|
||||
*
|
||||
* Deprecated: 2.32: Use #GArray instead of #GValueArray
|
||||
*/
|
||||
#define G_TYPE_PARAM_VALUE_ARRAY (g_param_spec_types[18])
|
||||
#define G_TYPE_PARAM_VALUE_ARRAY (g_param_spec_types[18]) GLIB_DEPRECATED_MACRO_IN_2_32
|
||||
/**
|
||||
* G_IS_PARAM_SPEC_VALUE_ARRAY:
|
||||
* @pspec: a valid #GParamSpec instance
|
||||
@@ -463,7 +463,7 @@ G_BEGIN_DECLS
|
||||
*
|
||||
* Deprecated: 2.32: Use #GArray instead of #GValueArray
|
||||
*/
|
||||
#define G_IS_PARAM_SPEC_VALUE_ARRAY(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_VALUE_ARRAY))
|
||||
#define G_IS_PARAM_SPEC_VALUE_ARRAY(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_VALUE_ARRAY)) GLIB_DEPRECATED_MACRO_IN_2_32
|
||||
/**
|
||||
* G_PARAM_SPEC_VALUE_ARRAY:
|
||||
* @pspec: a valid #GParamSpec instance
|
||||
@@ -472,7 +472,7 @@ G_BEGIN_DECLS
|
||||
*
|
||||
* Deprecated: 2.32: Use #GArray instead of #GValueArray
|
||||
*/
|
||||
#define G_PARAM_SPEC_VALUE_ARRAY(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_VALUE_ARRAY, GParamSpecValueArray))
|
||||
#define G_PARAM_SPEC_VALUE_ARRAY(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_VALUE_ARRAY, GParamSpecValueArray)) GLIB_DEPRECATED_MACRO_IN_2_32
|
||||
|
||||
/**
|
||||
* G_TYPE_PARAM_OBJECT:
|
||||
|
Reference in New Issue
Block a user