[gedit] Do not warn on G_FILE_ERROR_NOTDIR and G_FILE_ERROR_NOENT



commit cfc3af727a8982ed11d1809830043dbd0e53ec24
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date:   Mon Mar 1 08:59:44 2010 +0100

    Do not warn on G_FILE_ERROR_NOTDIR and G_FILE_ERROR_NOENT

 gedit/gedit-document.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c
index e4fb2a0..808b494 100644
--- a/gedit/gedit-document.c
+++ b/gedit/gedit-document.c
@@ -769,8 +769,13 @@ on_uri_changed (GeditDocument *doc,
 
 		if (error != NULL)
 		{
-			if (error->code != G_FILE_ERROR_ISDIR)
+			if (error->code != G_FILE_ERROR_ISDIR &&
+			    error->code != G_FILE_ERROR_NOTDIR &&
+			    error->code != G_FILE_ERROR_NOENT)
+			{
 				g_warning ("%s", error->message);
+			}
+
 			g_error_free (error);
 		}
 



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