[gtk/gtk-3-24: 1/2] GdkWin32: Add code for gtk-overlay-scrolling setting
- From: Luca Bacci <lbacci src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24: 1/2] GdkWin32: Add code for gtk-overlay-scrolling setting
- Date: Fri, 17 Jun 2022 09:49:42 +0000 (UTC)
commit b121fe8d51efba99ec288ff4b8fc8ad1c26b473a
Author: Luca Bacci <luca bacci982 gmail com>
Date: Fri Jun 17 11:04:54 2022 +0200
GdkWin32: Add code for gtk-overlay-scrolling setting
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/4899
gdk/win32/gdkproperty-win32.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
---
diff --git a/gdk/win32/gdkproperty-win32.c b/gdk/win32/gdkproperty-win32.c
index 80a2d5f0f3..afaa96321b 100644
--- a/gdk/win32/gdkproperty-win32.c
+++ b/gdk/win32/gdkproperty-win32.c
@@ -427,6 +427,19 @@ _gdk_win32_screen_get_setting (GdkScreen *screen,
return TRUE;
}
+ else if (strcmp ("gtk-overlay-scrolling", name) == 0)
+ {
+ DWORD val = 0;
+ DWORD sz = sizeof (val);
+ LSTATUS ret = 0;
+
+ ret = RegGetValueW (HKEY_CURRENT_USER, L"Control Panel\\Accessibility", L"DynamicScrollbars",
RRF_RT_DWORD, NULL, &val, &sz);
+ if (ret == ERROR_SUCCESS)
+ {
+ g_value_set_boolean (value, val != 0);
+ return TRUE;
+ }
+ }
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]