gtk+ r21571 - in trunk: . gtk



Author: chpe
Date: Thu Oct  2 19:47:57 2008
New Revision: 21571
URL: http://svn.gnome.org/viewvc/gtk+?rev=21571&view=rev

Log:
Bug 554701 â filechooser spams console with useless warnings

Modified:
   trunk/ChangeLog
   trunk/gtk/gtkfilesystem.c

Modified: trunk/gtk/gtkfilesystem.c
==============================================================================
--- trunk/gtk/gtkfilesystem.c	(original)
+++ trunk/gtk/gtkfilesystem.c	Thu Oct  2 19:47:57 2008
@@ -1304,7 +1304,9 @@
 
   if (error)
     {
-      g_warning (error->message);
+      if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+        g_warning ("%s", error->message);
+
       g_error_free (error);
       return;
     }



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