mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 18:30:08 +00:00
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:
parent
45681c4fe5
commit
24047d7f61
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user