summaryrefslogtreecommitdiff
path: root/libpeas/peas-extension-set.c
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2019-08-05 14:47:08 -0700
committerChristian Hergert <chergert@redhat.com>2019-08-05 14:47:35 -0700
commit8ee917d0f2f276efef38f79962d6e9f379298d96 (patch)
tree294e38a60083eb06d605ed00feb5ecd730ef6fdb /libpeas/peas-extension-set.c
parent8ef8dc542c10af281651f12c2cfc78437bd66158 (diff)
downloadlibpeas-8ee917d0f2f276efef38f79962d6e9f379298d96.tar.gz
libpeas: ignore GParameter deprecation
The API we use here relies on GParameter, and while it may be deprecated from GLib, the API will have to live for some time in libpeas itself. Instead, we can disable deprecations and rely on the GLib compiler warnings for projects that are consuming these APIs. Doing so also frees up a lot of our console output in builds to ensure people see other deprecations that need to be adjusted.
Diffstat (limited to 'libpeas/peas-extension-set.c')
-rw-r--r--libpeas/peas-extension-set.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libpeas/peas-extension-set.c b/libpeas/peas-extension-set.c
index a4e0f3f..9fa738a 100644
--- a/libpeas/peas-extension-set.c
+++ b/libpeas/peas-extension-set.c
@@ -92,7 +92,10 @@ struct _PeasExtensionSetPrivate {
PeasEngine *engine;
GType exten_type;
guint n_parameters;
+
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
GParameter *parameters;
+ G_GNUC_END_IGNORE_DEPRECATIONS
GQueue extensions;
};
@@ -104,7 +107,10 @@ typedef struct {
typedef struct {
guint n_parameters;
+
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
GParameter *parameters;
+ G_GNUC_END_IGNORE_DEPRECATIONS
} PeasParameterArray;
/* Signals */
@@ -142,7 +148,10 @@ set_construct_properties (PeasExtensionSet *set,
priv->n_parameters = array->n_parameters;
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
priv->parameters = g_new0 (GParameter, array->n_parameters);
+ G_GNUC_END_IGNORE_DEPRECATIONS
+
for (i = 0; i < array->n_parameters; i++)
{
priv->parameters[i].name = g_intern_string (array->parameters[i].name);
@@ -604,6 +613,8 @@ peas_extension_set_foreach (PeasExtensionSet *set,
}
}
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
/**
* peas_extension_set_newv: (rename-to peas_extension_set_new)
* @engine: (allow-none): A #PeasEngine, or %NULL.
@@ -691,6 +702,8 @@ peas_extension_set_new_valist (PeasEngine *engine,
return set;
}
+G_GNUC_END_IGNORE_DEPRECATIONS
+
/**
* peas_extension_set_new: (skip)
* @engine: (allow-none): A #PeasEngine, or %NULL.