[gimp] libgimpbase: Disable gimp_wire_read() warning



commit 9ddbc55a086a546b2967f16a2b51056e7cf57584
Author: Martin Nordholts <martinn src gnome org>
Date:   Thu Jul 1 21:15:33 2010 +0200

    libgimpbase: Disable gimp_wire_read() warning
    
    Disable gimp_wire_read() warning, most of the time it just gives this
    confusing error message when the GIMP core crashes:
    
    (script-fu:28495): LibGimpBase-WARNING **: script-fu: gimp_wire_read(): error

 libgimpbase/gimpwire.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgimpbase/gimpwire.c b/libgimpbase/gimpwire.c
index 52f4a6e..8c08238 100644
--- a/libgimpbase/gimpwire.c
+++ b/libgimpbase/gimpwire.c
@@ -102,7 +102,9 @@ gimp_wire_read (GIOChannel *channel,
     {
       if (!(* wire_read_func) (channel, buf, count, user_data))
         {
+          /* Gives a confusing error message most of the time, disable:
           g_warning ("%s: gimp_wire_read: error", g_get_prgname ());
+           */
           wire_error_val = TRUE;
           return FALSE;
         }



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