diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-06-24 23:00:58 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-07-04 11:17:21 -0400 |
commit | 778df432eb9bba4441d4c47cdbfbcd385b1e9d42 (patch) | |
tree | 39b66234cc325aafdddcebd76ec888d0cc099aaa /tests/testlanguage.c | |
parent | 249ce63ebb3d5666d5559184dd7c2c65e32695c2 (diff) | |
download | pango-778df432eb9bba4441d4c47cdbfbcd385b1e9d42.tar.gz |
Convert to the pango2 prefix
This makes pango 2 not just parallel-installable
with pango 1.x, but parallel-usable in the same
process.
Diffstat (limited to 'tests/testlanguage.c')
-rw-r--r-- | tests/testlanguage.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/testlanguage.c b/tests/testlanguage.c index 35844d46..1a6f238a 100644 --- a/tests/testlanguage.c +++ b/tests/testlanguage.c @@ -1,5 +1,5 @@ -/* Pango - * testlanguage.c: Test program for PangoLanguage +/* Pango2 + * testlanguage.c: Test program for Pango2Language * * Copyright (C) 2021 Matthias Clasen * @@ -25,11 +25,11 @@ static void test_language_to_string (void) { - PangoLanguage *lang; + Pango2Language *lang; - lang = pango_language_from_string ("ja-jp"); - g_assert_cmpstr (pango_language_to_string (lang), ==, "ja-jp"); - g_assert_cmpstr ((pango_language_to_string) (lang), ==, "ja-jp"); + lang = pango2_language_from_string ("ja-jp"); + g_assert_cmpstr (pango2_language_to_string (lang), ==, "ja-jp"); + g_assert_cmpstr ((pango2_language_to_string) (lang), ==, "ja-jp"); } static void @@ -37,15 +37,15 @@ test_language_env (void) { if (g_test_subprocess ()) { - PangoLanguage **preferred; + Pango2Language **preferred; - g_setenv ("PANGO_LANGUAGE", "de:ja", TRUE); + g_setenv ("PANGO2_LANGUAGE", "de:ja", TRUE); g_setenv ("LANGUAGE", "fr", TRUE); - preferred = pango_language_get_preferred (); + preferred = pango2_language_get_preferred (); g_assert_nonnull (preferred); - g_assert_true (preferred[0] == pango_language_from_string ("de")); - g_assert_true (preferred[1] == pango_language_from_string ("ja")); + g_assert_true (preferred[0] == pango2_language_from_string ("de")); + g_assert_true (preferred[1] == pango2_language_from_string ("ja")); g_assert_null (preferred[2]); return; |