mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-30 21:04:13 +02:00
headers: Add various missing G_DISABLE_DEPRECATED guards
As pointed out by gtk-doc, these are all symbols which have been marked as deprecated, but which aren’t protected by a deprecation guard. We can’t use G_DEPRECATED_IN_* for them, as they are all non-function symbols. Instead, wrap them in #ifndef G_DISABLE_DEPRECATED. In some cases, we also need to wrap one or two functions which use the deprecated types in G_DISABLE_DEPRECATED too. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
@@ -260,6 +260,8 @@ struct _GParamSpecClass
|
||||
/*< private >*/
|
||||
gpointer dummy[4];
|
||||
};
|
||||
|
||||
#ifndef G_DISABLE_DEPRECATED
|
||||
/**
|
||||
* GParameter:
|
||||
* @name: the parameter name
|
||||
@@ -275,7 +277,7 @@ struct _GParameter /* auxiliary structure for _setv() variants */
|
||||
const gchar *name;
|
||||
GValue value;
|
||||
};
|
||||
|
||||
#endif /* !G_DISABLE_DEPRECATED */
|
||||
|
||||
/* --- prototypes --- */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
|
Reference in New Issue
Block a user