Suppress cursor theme unsupported warning when there's no theme.

This commit is contained in:
John Ralls 2013-10-10 15:35:41 -07:00
parent a96f4e77c7
commit 010f30ecf2

View File

@ -2699,7 +2699,8 @@ settings_update_cursor_theme (GtkSettings *settings)
"gtk-cursor-theme-name", &theme,
"gtk-cursor-theme-size", &size,
NULL);
if (theme == NULL)
return;
#ifdef GDK_WINDOWING_X11
if (GDK_IS_X11_DISPLAY (display))
gdk_x11_display_set_cursor_theme (display, theme, size);