[pango/redo-attrs: 13/25] Rename pango_attribute_get_custom




commit 0d0dee941f221e0d976e8aacb35d9452ae97fe02
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Feb 6 10:01:11 2022 -0500

    Rename pango_attribute_get_custom

 pango/pango-attr.c     | 4 ++--
 pango/pango-attr.h     | 2 +-
 tests/testattributes.c | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/pango/pango-attr.c b/pango/pango-attr.c
index 0b2e6200..351a6abd 100644
--- a/pango/pango-attr.c
+++ b/pango/pango-attr.c
@@ -517,8 +517,8 @@ pango_attribute_get_font_desc (PangoAttribute        *attribute,
 }
 
 gboolean
-pango_attribute_get_custom (PangoAttribute *attribute,
-                            gpointer       *value)
+pango_attribute_get_pointer (PangoAttribute *attribute,
+                             gpointer       *value)
 {
   if (PANGO_ATTR_VALUE_TYPE (attribute) != PANGO_ATTR_VALUE_POINTER)
     return FALSE;
diff --git a/pango/pango-attr.h b/pango/pango-attr.h
index 7278bb1e..5309fbcd 100644
--- a/pango/pango-attr.h
+++ b/pango/pango-attr.h
@@ -279,7 +279,7 @@ gboolean                pango_attribute_get_font_desc           (PangoAttribute
                                                                  PangoFontDescription       **value);
 
 PANGO_AVAILABLE_IN_1_52
-gboolean                pango_attribute_get_custom              (PangoAttribute              *attribute,
+gboolean                pango_attribute_get_pointer             (PangoAttribute              *attribute,
                                                                  gpointer                    *value);
 
 
diff --git a/tests/testattributes.c b/tests/testattributes.c
index 9fc172c6..971045fb 100644
--- a/tests/testattributes.c
+++ b/tests/testattributes.c
@@ -145,7 +145,7 @@ test_attributes_register (void)
   attr = pango_attribute_new (type);
   attr->pointer_value = (gpointer)0x42;
 
-  ret = pango_attribute_get_custom (attr, &value);
+  ret = pango_attribute_get_pointer (attr, &value);
   g_assert_true (ret);
   g_assert_true (value == (gpointer)0x42);
 
@@ -203,7 +203,7 @@ test_binding (PangoAttribute *attr)
       g_assert_true (pango_attribute_get_float (attr, &double_value));
       break;
     case PANGO_ATTR_VALUE_POINTER:
-      g_assert_true (pango_attribute_get_custom (attr, &pointer_value));
+      g_assert_true (pango_attribute_get_pointer (attr, &pointer_value));
       break;
     default:
       g_assert_not_reached ();


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