[gtk+/gtk-3-22] x11: Don't warn if the display is closed



commit c70ba3a4f0043e11fffe0023685f99ec3990c644
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Nov 30 13:43:17 2016 -0500

    x11: Don't warn if the display is closed
    
    This causes a storm of warnings from all applications in the logs
    whenever the display goes away, and is not useful.

 gdk/x11/gdkmain-x11.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/x11/gdkmain-x11.c b/gdk/x11/gdkmain-x11.c
index 197bddc..74c3849 100644
--- a/gdk/x11/gdkmain-x11.c
+++ b/gdk/x11/gdkmain-x11.c
@@ -245,7 +245,7 @@ gdk_x_io_error (Display *display)
    */
   if (errno == EPIPE)
     {
-      g_warning ("The application '%s' lost its connection to the display %s;\n"
+      g_message ("The application '%s' lost its connection to the display %s;\n"
                  "most likely the X server was shut down or you killed/destroyed\n"
                  "the application.\n",
                  g_get_prgname (),
@@ -253,7 +253,7 @@ gdk_x_io_error (Display *display)
     }
   else
     {
-      g_warning ("%s: Fatal IO error %d (%s) on X server %s.\n",
+      g_message ("%s: Fatal IO error %d (%s) on X server %s.\n",
                  g_get_prgname (),
                  errno, g_strerror (errno),
                  display ? DisplayString (display) : gdk_get_display_arg_name ());


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