From ac576400ecd554879c906791e6638d64bb8bcc2a Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Tue, 6 Aug 2019 16:40:26 -0700 Subject: [PATCH] pygobject: ignore GParameter deprecations Consumers of this API will get GParameter notifications elsewhere in their code when using GParameter. Since it needs to be around for compatibility API, we can safely ignore it here and save consuming applications some duplicated deprecation warnings. --- gi/pygobject.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gi/pygobject.h b/gi/pygobject.h index d24251529..a45a4b031 100644 --- a/gi/pygobject.h +++ b/gi/pygobject.h @@ -154,12 +154,14 @@ struct _PyGObject_Functions { PyObject *(* paramspec_new)(GParamSpec *spec); GParamSpec *(*paramspec_get)(PyObject *tuple); int (*pyobj_to_unichar_conv)(PyObject *pyobj, void* ptr); +G_GNUC_BEGIN_IGNORE_DEPRECATIONS gboolean (*parse_constructor_args)(GType obj_type, char **arg_names, char **prop_names, GParameter *params, guint *nparams, PyObject **py_args); +G_GNUC_END_IGNORE_DEPRECATIONS PyObject *(* param_gvalue_as_pyobject) (const GValue* gvalue, gboolean copy_boxed, const GParamSpec* pspec); -- GitLab