summaryrefslogtreecommitdiff
path: root/gi
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2019-08-06 16:40:26 -0700
committerChristian Hergert <chergert@redhat.com>2019-08-06 16:40:26 -0700
commitac576400ecd554879c906791e6638d64bb8bcc2a (patch)
tree63ac4bcfcbef0df8b7a3479794d68d429a8b7c1b /gi
parent527bcf74aa2f2cfbf13f2e3af46ffb3819f08141 (diff)
downloadpygobject-ac576400ecd554879c906791e6638d64bb8bcc2a.tar.gz
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.
Diffstat (limited to 'gi')
-rw-r--r--gi/pygobject.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gi/pygobject.h b/gi/pygobject.h
index d2425152..a45a4b03 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);