forked from AuroraMiddleware/gtk
wayland: Stop using gdk_screen_get_setting
Use gdk_display_get_setting instead.
This commit is contained in:
parent
51ba0b41a2
commit
d9809df8ce
@ -1137,14 +1137,14 @@ _gdk_wayland_display_load_cursor_theme (GdkWaylandDisplay *display_wayland)
|
|||||||
g_assert (display_wayland->shm);
|
g_assert (display_wayland->shm);
|
||||||
|
|
||||||
g_value_init (&v, G_TYPE_INT);
|
g_value_init (&v, G_TYPE_INT);
|
||||||
if (gdk_screen_get_setting (display_wayland->screen, "gtk-cursor-theme-size", &v))
|
if (gdk_display_get_setting (GDK_DISPLAY (display_wayland), "gtk-cursor-theme-size", &v))
|
||||||
size = g_value_get_int (&v);
|
size = g_value_get_int (&v);
|
||||||
else
|
else
|
||||||
size = 32;
|
size = 32;
|
||||||
g_value_unset (&v);
|
g_value_unset (&v);
|
||||||
|
|
||||||
g_value_init (&v, G_TYPE_STRING);
|
g_value_init (&v, G_TYPE_STRING);
|
||||||
if (gdk_screen_get_setting (display_wayland->screen, "gtk-cursor-theme-name", &v))
|
if (gdk_display_get_setting (GDK_DISPLAY (display_wayland), "gtk-cursor-theme-name", &v))
|
||||||
name = g_value_get_string (&v);
|
name = g_value_get_string (&v);
|
||||||
else
|
else
|
||||||
name = "default";
|
name = "default";
|
||||||
|
Loading…
Reference in New Issue
Block a user