From: Alberto Garcia Date: Mon, 6 Feb 2023 11:14:55 +0000 (+0000) Subject: Remove warning about 'gtk-overlay-scrolling' not being found X-Git-Tag: archive/raspbian/2.38.4-2_deb10u1+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3760ef9f6217387fb60df419171da40939506c76;p=webkit2gtk.git 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 --- 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; }