From: Emmanuele Bassi Date: Sun, 7 Aug 2022 18:54:19 +0000 (+0000) Subject: Apply 1 suggestion(s) to 1 file(s) X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~20^2~4^2~12^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ba1a084899fd912ce72755cb576ca83b131e944c;p=gtk4.git Apply 1 suggestion(s) to 1 file(s) --- diff --git a/testsuite/reftests/gtk-reftest.c b/testsuite/reftests/gtk-reftest.c index c3900b924b..a057a2e9d0 100644 --- a/testsuite/reftests/gtk-reftest.c +++ b/testsuite/reftests/gtk-reftest.c @@ -69,9 +69,13 @@ static gboolean would_drop (GLogLevelFlags level, const char *domain) { +#if GLIB_CHECK_VERSION (2, 68, 0) + return g_log_writer_default_would_drop (level, domain); +#else return (level & (G_LOG_LEVEL_ERROR | G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING)) == 0; +#endif } static gboolean