GdkWin32: Set the "gtk-cursor-theme-size" setting
authorLuca Bacci <luca.bacci982@gmail.com>
Fri, 4 Nov 2022 14:56:20 +0000 (15:56 +0100)
committerLuca Bacci <luca.bacci982@gmail.com>
Fri, 4 Nov 2022 14:56:20 +0000 (15:56 +0100)
Note that we have to set the logical value, that's why
we use GetSystemMetrics and not GetSystemMetricsForDpi.

gdk/win32/gdkproperty-win32.c

index 5a5b12253ae15b6d68573a5d4c78839be5b2b8eb..f77288c4c56f528a1a7e971b0c26ecd1e0f39517 100644 (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));