[nautilus-actions] NASettings: do not warn if configuration file does not exist
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] NASettings: do not warn if configuration file does not exist
- Date: Wed, 19 Jan 2011 21:51:14 +0000 (UTC)
commit e51c6a3cf48e674b0f30004b031705d462504c74
Author: Pierre <pierre vfedora13 virtuals pwi>
Date: Wed Jan 12 15:47:05 2011 +0100
NASettings: do not warn if configuration file does not exist
ChangeLog | 3 +++
src/core/na-settings.c | 4 +++-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f1f10df..7cb153a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -35,6 +35,9 @@
* run-autogen.sh: Add sysconfdir argument to autogen.sh
+ * src/core/na-settings.c (content_load_keys):
+ Do not warn if configuration file does not exist.
+
* src/api/na-boxed.h:
* src/api/na-data-boxed.h:
* src/api/na-data-types.h:
diff --git a/src/core/na-settings.c b/src/core/na-settings.c
index 3421e97..356da98 100644
--- a/src/core/na-settings.c
+++ b/src/core/na-settings.c
@@ -677,7 +677,9 @@ content_load_keys( NASettings *settings, GList *content, KeyFile *key_file, gboo
error = NULL;
if( !g_key_file_load_from_file( key_file->key_file, key_file->fname, G_KEY_FILE_KEEP_COMMENTS, &error )){
- g_warning( "%s: %s: %s", thisfn, key_file->fname, error->message );
+ if( error->code != G_FILE_ERROR_NOENT ){
+ g_warning( "%s: %s (%d) %s", thisfn, key_file->fname, error->code, error->message );
+ }
g_error_free( error );
error = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]