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:
Philip Withnall
2019-03-07 17:25:55 +00:00
parent 9e56d39bb4
commit 80fcb1bc26
13 changed files with 48 additions and 3 deletions

View File

@@ -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