GdkWin32: Set the "gtk-cursor-blink" setting
authorLuca Bacci <luca.bacci982@gmail.com>
Fri, 4 Nov 2022 14:57:25 +0000 (15:57 +0100)
committerLuca Bacci <luca.bacci982@gmail.com>
Fri, 4 Nov 2022 14:57:25 +0000 (15:57 +0100)
gdk/win32/gdkproperty-win32.c

index f77288c4c56f528a1a7e971b0c26ecd1e0f39517..451508133730a03081e4be560c3a2aabc5bbc7a7 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-blink", name) == 0)
+    {
+      gboolean blinks = (GetCaretBlinkTime () != INFINITE);
+      GDK_NOTE(MISC, g_print("gdk_display_get_setting(\"%s\") : %s\n", name, blinks ? "TRUE" : "FALSE"));
+      g_value_set_boolean (value, blinks);
+      return TRUE;
+    }
   else if (strcmp ("gtk-cursor-theme-size", name) == 0)
     {
       int cursor_size = GetSystemMetrics (SM_CXCURSOR);