forked from AuroraMiddleware/gtk
x11: Handle case where xsettings are NULL
This commit is contained in:
parent
0ed47e1bb7
commit
de08716526
@ -1318,6 +1318,8 @@ gdk_x11_screen_get_setting (GdkScreen *screen,
|
||||
GdkX11Screen *x11_screen = GDK_X11_SCREEN (screen);
|
||||
const GValue *setting;
|
||||
|
||||
if (x11_screen->xsettings == NULL)
|
||||
goto out;
|
||||
setting = g_hash_table_lookup (x11_screen->xsettings, name);
|
||||
if (setting == NULL)
|
||||
goto out;
|
||||
|
Loading…
Reference in New Issue
Block a user