[libadwaita/wip/exalm/test] tests: Don't glib 2.68 API unless available
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/test] tests: Don't glib 2.68 API unless available
- Date: Wed, 13 Jul 2022 14:59:54 +0000 (UTC)
commit 00bbdd32f77965ebba464ff31b6656fa1bcdaa22
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Jul 13 18:59:03 2022 +0400
tests: Don't glib 2.68 API unless available
Missed this one - we depend on 2.66 and not 2.68 - same as GTK4.
tests/test-about-window.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/tests/test-about-window.c b/tests/test-about-window.c
index f9c8f6b7..6825553f 100644
--- a/tests/test-about-window.c
+++ b/tests/test-about-window.c
@@ -79,10 +79,12 @@ test_adw_about_window_create (void)
g_assert_cmpstr (adw_about_window_get_support_url (window), ==, "https://example.org");
g_assert_cmpstr (adw_about_window_get_debug_info (window), ==, "Debug");
g_assert_cmpstr (adw_about_window_get_debug_info_filename (window), ==, "debug.txt");
+#if GLIB_CHECK_VERSION (2, 68, 0)
g_assert_cmpstrv (adw_about_window_get_developers (window), developers);
g_assert_cmpstrv (adw_about_window_get_designers (window), designers);
g_assert_cmpstrv (adw_about_window_get_artists (window), artists);
g_assert_cmpstrv (adw_about_window_get_documenters (window), documenters);
+#endif
g_assert_cmpstr (adw_about_window_get_translator_credits (window), ==, "translator-credits");
g_assert_cmpstr (adw_about_window_get_copyright (window), ==, "© 2022 Angela Avery");
g_assert_cmpuint (adw_about_window_get_license_type (window), ==, GTK_LICENSE_GPL_3_0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]