From 3de8fa2ae701dcae8da67dbd416870f757199e83 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Date: Thu, 16 Feb 2023 13:10:40 +0000 Subject: [PATCH] Remove warning about 'gtk-overlay-scrolling' not being found Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1024535 Forwarded: no =================================================================== Gbp-Pq: Name no-gtk-overlay-scrolling.patch --- Source/WebCore/platform/gtk/GtkUtilities.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Source/WebCore/platform/gtk/GtkUtilities.cpp b/Source/WebCore/platform/gtk/GtkUtilities.cpp index a343c29e4d..f4bcc7ed80 100644 --- a/Source/WebCore/platform/gtk/GtkUtilities.cpp +++ b/Source/WebCore/platform/gtk/GtkUtilities.cpp @@ -214,10 +214,14 @@ bool shouldUseOverlayScrollbars() return false; #endif + GtkSettings* settings = gtk_settings_get_default(); + const char* property = "gtk-overlay-scrolling"; + + if (!g_object_class_find_property(G_OBJECT_GET_CLASS(settings), property)) + return false; + gboolean overlayScrolling; - g_object_get(gtk_settings_get_default(), - "gtk-overlay-scrolling", - &overlayScrolling, nullptr); + g_object_get(settings, property, &overlayScrolling, nullptr); return !!overlayScrolling; } -- 2.30.2