summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2020-06-19 19:16:17 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2020-06-19 19:20:05 -0300
commit0153f610979cdf7b26df48e43f79b5843241a624 (patch)
tree26b889cdba8bac1563bc1efc2ca82faf3fb5c340
parent49ed23c3812b471c99df610eaca54f61c4d65db0 (diff)
downloadglade-0153f610979cdf7b26df48e43f79b5843241a624.tar.gz
GladeProperty: fix gir scanner warning
Rename DEPRECATED_IS_PARAM_SPEC_VALUE_ARRAY as GLADE_PROPERTY_IS_PARAM_SPEC_VALUE_ARRAY
-rw-r--r--gladeui/glade-property-def.c4
-rw-r--r--gladeui/glade-property.h2
-rw-r--r--gladeui/glade-widget-adaptor.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/gladeui/glade-property-def.c b/gladeui/glade-property-def.c
index 1a3c8318..39e1b257 100644
--- a/gladeui/glade-property-def.c
+++ b/gladeui/glade-property-def.c
@@ -509,7 +509,7 @@ glade_property_def_make_string_from_gvalue (GladePropertyDef *
GList *objects;
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
- if (DEPRECATED_IS_PARAM_SPEC_VALUE_ARRAY (property_def->pspec))
+ if (GLADE_PROPERTY_IS_PARAM_SPEC_VALUE_ARRAY (property_def->pspec))
{
G_GNUC_END_IGNORE_DEPRECATIONS;
GValueArray *value_array = g_value_get_boxed (value);
@@ -846,7 +846,7 @@ glade_property_def_make_gvalue_from_string (GladePropertyDef *property_def,
g_value_init (value, property_def->pspec->value_type);
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
- if (DEPRECATED_IS_PARAM_SPEC_VALUE_ARRAY (property_def->pspec))
+ if (GLADE_PROPERTY_IS_PARAM_SPEC_VALUE_ARRAY (property_def->pspec))
{
G_GNUC_END_IGNORE_DEPRECATIONS;
GValueArray *value_array;
diff --git a/gladeui/glade-property.h b/gladeui/glade-property.h
index 209ac695..24a74f86 100644
--- a/gladeui/glade-property.h
+++ b/gladeui/glade-property.h
@@ -12,7 +12,7 @@ G_BEGIN_DECLS
#define GLADE_IS_PROPERTY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GLADE_TYPE_PROPERTY))
#define GLADE_PROPERTY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GLADE_PROPERTY, GladePropertyClass))
-#define DEPRECATED_IS_PARAM_SPEC_VALUE_ARRAY(p) G_TYPE_CHECK_INSTANCE_TYPE (p, g_value_array_get_type())
+#define GLADE_PROPERTY_IS_PARAM_SPEC_VALUE_ARRAY(p) G_TYPE_CHECK_INSTANCE_TYPE (p, g_value_array_get_type())
typedef struct _GladePropertyClass GladePropertyClass;
typedef struct _GladePropertyPrivate GladePropertyPrivate;
diff --git a/gladeui/glade-widget-adaptor.c b/gladeui/glade-widget-adaptor.c
index 0845a553..9922f856 100644
--- a/gladeui/glade-widget-adaptor.c
+++ b/gladeui/glade-widget-adaptor.c
@@ -1240,7 +1240,7 @@ glade_widget_adaptor_get_eprop_type (GParamSpec *pspec)
GType type = 0;
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
- if (DEPRECATED_IS_PARAM_SPEC_VALUE_ARRAY (pspec))
+ if (GLADE_PROPERTY_IS_PARAM_SPEC_VALUE_ARRAY (pspec))
{
/* Require deprecated code */
if (pspec->value_type == g_value_array_get_type ())