mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 20:51:07 +00:00
GdkWin32: Set the "gtk-cursor-blink" setting
This commit is contained in:
parent
24047d7f61
commit
41f9f1d623
@ -76,6 +76,13 @@ _gdk_win32_get_setting (const char *name,
|
|||||||
g_value_set_boolean (value, TRUE);
|
g_value_set_boolean (value, TRUE);
|
||||||
return 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)
|
else if (strcmp ("gtk-cursor-theme-size", name) == 0)
|
||||||
{
|
{
|
||||||
int cursor_size = GetSystemMetrics (SM_CXCURSOR);
|
int cursor_size = GetSystemMetrics (SM_CXCURSOR);
|
||||||
|
Loading…
Reference in New Issue
Block a user