[gnome-control-center] background: Don't show an error if no cache dir



commit 2866a70f6af4b7ba3b9765db7559011f17926cf2
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Feb 14 11:07:04 2011 +0000

    background: Don't show an error if no cache dir
    
    We don't want to see errors if the directory doesn't exist.

 panels/background/bg-pictures-source.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/panels/background/bg-pictures-source.c b/panels/background/bg-pictures-source.c
index 1ca2b0b..39a2bb5 100644
--- a/panels/background/bg-pictures-source.c
+++ b/panels/background/bg-pictures-source.c
@@ -254,7 +254,8 @@ dir_enum_async_ready (GObject      *source,
 
   if (err)
     {
-      g_warning ("Could not fill pictures source: %s", err->message);
+      if (g_error_matches (err, G_IO_ERROR, G_IO_ERROR_NOT_FOUND) == FALSE)
+        g_warning ("Could not fill pictures source: %s", err->message);
       g_error_free (err);
       return;
     }



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