projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24047d7
)
GdkWin32: Set the "gtk-cursor-blink" setting
author
Luca Bacci
<luca.bacci982@gmail.com>
Fri, 4 Nov 2022 14:57:25 +0000
(15:57 +0100)
committer
Luca Bacci
<luca.bacci982@gmail.com>
Fri, 4 Nov 2022 14:57:25 +0000
(15:57 +0100)
gdk/win32/gdkproperty-win32.c
patch
|
blob
|
history
diff --git
a/gdk/win32/gdkproperty-win32.c
b/gdk/win32/gdkproperty-win32.c
index f77288c4c56f528a1a7e971b0c26ecd1e0f39517..451508133730a03081e4be560c3a2aabc5bbc7a7 100644
(file)
--- 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-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);