From: Bastien Nocera Date: Mon, 11 Oct 2021 11:55:35 +0000 (+0200) Subject: broadway: Quiet initialisation failures X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=59dd0dccbf3f11d19f92b5c5a80c3e6c1626a2a3;p=gtk4.git 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" --- diff --git a/gdk/broadway/gdkdisplay-broadway.c b/gdk/broadway/gdkdisplay-broadway.c index cfdbb6f707..d656ab39ac 100644 --- a/gdk/broadway/gdkdisplay-broadway.c +++ b/gdk/broadway/gdkdisplay-broadway.c @@ -214,7 +214,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; }