diff options
author | Christian Persch <chpe@src.gnome.org> | 2008-10-02 19:47:57 +0000 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2008-10-02 19:47:57 +0000 |
commit | 60033fd59dc34302c51d6b3c6a73759737fcdc76 (patch) | |
tree | a9b551c7857383d6b855ebd4c19eb5f48ba51a2c | |
parent | 96b8743e950c1a0ef8580f4ba78452602779d007 (diff) | |
download | gtk+-60033fd59dc34302c51d6b3c6a73759737fcdc76.tar.gz |
Bug 554701 – filechooser spams console with useless warnings
svn path=/trunk/; revision=21571
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | gtk/gtkfilesystem.c | 4 |
2 files changed, 10 insertions, 1 deletions
@@ -1,5 +1,12 @@ 2008-10-02 Christian Persch + Bug 554701 – filechooser spams console with useless warnings + + * gtk/gtkfilesystem.c.c: Don't warn if the async call was simply + cancelled. + +2008-10-02 Christian Persch + Bug 554698 – mem leak in filechooser * gtk/gtkfilechooserdefault.c: Plug a mem leak. 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; } |