summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-01-02 04:01:42 +0000
committerMatthias Clasen <mclasen@redhat.com>2022-01-02 04:01:42 +0000
commitfc46f12754e9035c71da2747be55361ddfcf7635 (patch)
tree49862b8b6ec000772bf1d880652c4e0b7f8fa0f0
parent024ee9adea386e190e174db848dd1ff16dac5d6a (diff)
parent225857ac43eb4ffb4b43d6200804d8c9ebfb8b46 (diff)
downloadpango-fc46f12754e9035c71da2747be55361ddfcf7635.tar.gz
Merge branch 'matthiasc/for-main' into 'main'
test-ellipsize: Tweak See merge request GNOME/pango!569
-rw-r--r--tests/test-ellipsize.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-ellipsize.c b/tests/test-ellipsize.c
index a9441d5a..163184ff 100644
--- a/tests/test-ellipsize.c
+++ b/tests/test-ellipsize.c
@@ -43,14 +43,14 @@ test_ellipsize_height (void)
pango_layout_set_text (layout, "some text that should be ellipsized", -1);
g_assert_cmpint (pango_layout_get_line_count (layout), ==, 1);
- pango_layout_get_pixel_size (layout, NULL, &height1);
+ pango_layout_get_size (layout, NULL, &height1);
pango_layout_set_width (layout, 100 * PANGO_SCALE);
pango_layout_set_ellipsize (layout, PANGO_ELLIPSIZE_END);
g_assert_cmpint (pango_layout_get_line_count (layout), ==, 1);
g_assert_cmpint (pango_layout_is_ellipsized (layout), ==, 1);
- pango_layout_get_pixel_size (layout, NULL, &height2);
+ pango_layout_get_size (layout, NULL, &height2);
g_assert_cmpint (height1, ==, height2);