projects
/
webkit2gtk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37eb3ba
)
Remove warning about 'gtk-overlay-scrolling' not being found
author
Alberto Garcia
<berto@igalia.com>
Fri, 30 Dec 2022 14:08:37 +0000
(14:08 +0000)
committer
Alberto Garcia
<berto@igalia.com>
Fri, 30 Dec 2022 14:08:37 +0000
(14:08 +0000)
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
patch
|
blob
|
history
diff --git
a/Source/WebCore/platform/gtk/GtkUtilities.cpp
b/Source/WebCore/platform/gtk/GtkUtilities.cpp
index a343c29e4d6e6e5d2c55792a37ba87cd9fd4142c..f4bcc7ed8026050ebe46750b6f640b3feda05ba0 100644
(file)
--- 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;
}