[nautilus-actions] Do not emit a warning on 'no such file or directory' error
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Do not emit a warning on 'no such file or directory' error
- Date: Tue, 16 Mar 2010 21:38:21 +0000 (UTC)
commit 145eb63a26e91de42b3115972df81788896812f8
Author: Pierre Wieser <pwieser trychlos org>
Date: Tue Mar 16 22:08:28 2010 +0100
Do not emit a warning on 'no such file or directory' error
ChangeLog | 3 +++
src/core/na-core-utils.c | 4 +++-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d287f55..75fa6e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2009-03-16 Pierre Wieser <pwieser trychlos org>
+ * src/core/na-core-utils.c (info_dir_is_writable):
+ Do not emit a warning on 'no such file or directory' error.
+
* src/utils/nautilus-actions-new.c
(output_to_stdout): Output the new action to stdout.
(output_to_gconf): Output the new action to GConf.
diff --git a/src/core/na-core-utils.c b/src/core/na-core-utils.c
index e3ca145..8360763 100644
--- a/src/core/na-core-utils.c
+++ b/src/core/na-core-utils.c
@@ -598,7 +598,9 @@ info_dir_is_writable( GFile *file, const gchar *path_or_uri )
G_FILE_QUERY_INFO_NONE, NULL, &error );
if( error ){
- g_warning( "%s: g_file_query_info error: %s", thisfn, error->message );
+ if( error->code != G_IO_ERROR_NOT_FOUND ){
+ g_warning( "%s: g_file_query_info error: %s", thisfn, error->message );
+ }
g_error_free( error );
return( FALSE );
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]