[pygobject/wip/chergert/quiet-gparameter] pygobject: ignore GParameter deprecations



commit ac576400ecd554879c906791e6638d64bb8bcc2a
Author: Christian Hergert <chergert redhat com>
Date:   Tue Aug 6 16:40:26 2019 -0700

    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 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]