mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
Exit cleanly if no display is found
We should not try to create an inspector window and generate tons of ugly warnings in this case.
This commit is contained in:
parent
9ded44b3de
commit
da8e83f9cb
@ -777,7 +777,7 @@ gtk_init_check (void)
|
||||
|
||||
ret = gdk_display_open_default () != NULL;
|
||||
|
||||
if (gtk_get_debug_flags () & GTK_DEBUG_INTERACTIVE)
|
||||
if (ret && (gtk_get_debug_flags () & GTK_DEBUG_INTERACTIVE))
|
||||
gtk_window_set_interactive_debugging (TRUE);
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user