[gtk/wip/hadess/quiet-broadway-gtk3] broadway: Quiet initialisation failures




commit b3e6530596ea795461ff522cf0e2d324213317c9
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Oct 11 13:55:35 2021 +0200

    broadway: Quiet initialisation failures
    
    Broadway is the only GTK+ backend that throws an error on stderr when
    failing to initialise, which causes problems when gtk_init_check() is
    used and unexpected error output is generated.
    
    This causes hotdoc to fail when generating a GTK plugin's documentation
    instead of failing quietly.
    
    "Unable to init server: Could not connect: Connection refused"

 gdk/broadway/gdkdisplay-broadway.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/broadway/gdkdisplay-broadway.c b/gdk/broadway/gdkdisplay-broadway.c
index 54a1fa85fb..c82056fc5d 100644
--- a/gdk/broadway/gdkdisplay-broadway.c
+++ b/gdk/broadway/gdkdisplay-broadway.c
@@ -109,7 +109,7 @@ _gdk_broadway_display_open (const gchar *display_name)
   broadway_display->server = _gdk_broadway_server_new (display_name, &error);
   if (broadway_display->server == NULL)
     {
-      g_printerr ("Unable to init server: %s\n", error->message);
+      g_debug ("Unable to init Broadway server: %s\n", error->message);
       g_error_free (error);
       return NULL;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]