[gtk: 2/3] Apply 1 suggestion(s) to 1 file(s)
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 2/3] Apply 1 suggestion(s) to 1 file(s)
- Date: Sun, 7 Aug 2022 19:09:05 +0000 (UTC)
commit ba1a084899fd912ce72755cb576ca83b131e944c
Author: Emmanuele Bassi <ebassi gmail com>
Date: Sun Aug 7 18:54:19 2022 +0000
Apply 1 suggestion(s) to 1 file(s)
testsuite/reftests/gtk-reftest.c | 4 ++++
1 file changed, 4 insertions(+)
---
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]