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.
This commit is contained in:
Luca Bacci 2022-11-04 15:56:20 +01:00
parent 45681c4fe5
commit 24047d7f61

View File

@ -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));