[gedit-plugins] Do not show error if the file doesn't exists, as we are creating it in gedit.



commit 218c32ac26f1af2f40ed490e42258bde7edcd36e
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sun Nov 22 16:02:18 2009 +0100

    Do not show error if the file doesn't exists, as we are creating it in gedit.

 plugins/bookmarks/gedit-bookmarks-plugin.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/bookmarks/gedit-bookmarks-plugin.c b/plugins/bookmarks/gedit-bookmarks-plugin.c
index 54155d7..539d37f 100644
--- a/plugins/bookmarks/gedit-bookmarks-plugin.c
+++ b/plugins/bookmarks/gedit-bookmarks-plugin.c
@@ -368,7 +368,8 @@ load_bookmark_query_info_cb (GFile        *source,
 
 	if (info == NULL)
 	{
-		g_warning ("%s", error->message);
+		if (error->code != G_FILE_ERROR_ISDIR)
+			g_warning ("%s", error->message);
 		g_error_free (error);
 		return;
 	}
@@ -480,7 +481,8 @@ save_bookmarks_query_info_cb (GFile        *source,
 
 	if (info == NULL)
 	{
-		g_warning ("%s", error->message);
+		if (error->code != G_FILE_ERROR_ISDIR)
+			g_warning ("%s", error->message);
 		g_error_free (error);
 		return;
 	}



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