mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
broadway: Quiet initialisation failures
Broadway is the only GTK+ backend that throws an error on stderr for a "display server" connection failure. This causes problems when gtk_init_check() is used and unexpected error output is generated such as with hotdoc, which fails when generating a GTK plugin's documentation instead of overlooking the issue. "Unable to init server: Could not connect: Connection refused"
This commit is contained in:
parent
e6ae3b8a2b
commit
fc32c19ca7
@ -213,7 +213,7 @@ _gdk_broadway_display_open (const char *display_name)
|
||||
broadway_display->server = _gdk_broadway_server_new (display, display_name, &error);
|
||||
if (broadway_display->server == NULL)
|
||||
{
|
||||
g_debug ("Unable to init Broadway server: %s\n", error->message);
|
||||
GDK_NOTE (MISC, g_message ("Unable to init Broadway server: %s\n", error->message));
|
||||
g_error_free (error);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user