diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-02-06 10:01:11 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-02-13 14:28:05 -0600 |
commit | 0d0dee941f221e0d976e8aacb35d9452ae97fe02 (patch) | |
tree | b4ddc127f55e87c7c71e369b183c0fb0309771f7 | |
parent | 363fc46be82c936eb5e6303098d08a77745d1a3c (diff) | |
download | pango-0d0dee941f221e0d976e8aacb35d9452ae97fe02.tar.gz |
Rename pango_attribute_get_custom
-rw-r--r-- | pango/pango-attr.c | 4 | ||||
-rw-r--r-- | pango/pango-attr.h | 2 | ||||
-rw-r--r-- | 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 (); |