summaryrefslogtreecommitdiff
path: root/gtk/gtkfilesystem.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2008-10-02 19:47:57 +0000
committerChristian Persch <chpe@src.gnome.org>2008-10-02 19:47:57 +0000
commit60033fd59dc34302c51d6b3c6a73759737fcdc76 (patch)
treea9b551c7857383d6b855ebd4c19eb5f48ba51a2c /gtk/gtkfilesystem.c
parent96b8743e950c1a0ef8580f4ba78452602779d007 (diff)
downloadgtk+-60033fd59dc34302c51d6b3c6a73759737fcdc76.tar.gz
Bug 554701 – filechooser spams console with useless warnings
svn path=/trunk/; revision=21571
Diffstat (limited to 'gtk/gtkfilesystem.c')
-rw-r--r--gtk/gtkfilesystem.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkfilesystem.c b/gtk/gtkfilesystem.c
index 8b57da8292..0bd79b08f6 100644
--- a/gtk/gtkfilesystem.c
+++ b/gtk/gtkfilesystem.c
@@ -1304,7 +1304,9 @@ enumerator_files_callback (GObject *source_object,
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;
}