From: Luca Bacci Date: Fri, 4 Nov 2022 14:56:20 +0000 (+0100) Subject: GdkWin32: Set the "gtk-cursor-theme-size" setting X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~9^2~119^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=24047d7f61bf7ae10f689172c10e233cab3f51ef;p=gtk4.git GdkWin32: Set the "gtk-cursor-theme-size" setting Note that we have to set the logical value, that's why we use GetSystemMetrics and not GetSystemMetricsForDpi. --- diff --git a/gdk/win32/gdkproperty-win32.c b/gdk/win32/gdkproperty-win32.c index 5a5b12253a..f77288c4c5 100644 --- a/gdk/win32/gdkproperty-win32.c +++ b/gdk/win32/gdkproperty-win32.c @@ -76,6 +76,13 @@ _gdk_win32_get_setting (const char *name, g_value_set_boolean (value, TRUE); return TRUE; } + else if (strcmp ("gtk-cursor-theme-size", name) == 0) + { + int cursor_size = GetSystemMetrics (SM_CXCURSOR); + GDK_NOTE(MISC, g_print("gdk_display_get_setting(\"%s\") : %d\n", name, cursor_size)); + g_value_set_int (value, cursor_size); + return TRUE; + } else if (strcmp ("gtk-dnd-drag-threshold", name) == 0) { int i = MAX(GetSystemMetrics (SM_CXDRAG), GetSystemMetrics (SM_CYDRAG));