[glade] GladeProperty: fix gir scanner warning



commit 0153f610979cdf7b26df48e43f79b5843241a624
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Fri Jun 19 19:16:17 2020 -0300

    GladeProperty: fix gir scanner warning
    
    Rename DEPRECATED_IS_PARAM_SPEC_VALUE_ARRAY as GLADE_PROPERTY_IS_PARAM_SPEC_VALUE_ARRAY

 gladeui/glade-property-def.c   | 4 ++--
 gladeui/glade-property.h       | 2 +-
 gladeui/glade-widget-adaptor.c | 2 +-
 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 ())


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