[nautilus-actions] nadp_desktop_file_new_from_uri: minimize warnings on import
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] nadp_desktop_file_new_from_uri: minimize warnings on import
- Date: Mon, 28 Nov 2011 22:33:32 +0000 (UTC)
commit 70cb330f1fd230b54393b130a3e21a6cd0e0c3d3
Author: Pierre Wieser <pwieser trychlos org>
Date: Mon Nov 28 07:34:18 2011 +0100
nadp_desktop_file_new_from_uri: minimize warnings on import
ChangeLog | 3 +++
src/io-desktop/nadp-desktop-file.c | 8 ++++----
2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 19c2599..e37b65f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2011-11-28 Pierre Wieser <pwieser trychlos org>
+ * src/io-desktop/nadp-desktop-file.c (nadp_desktop_file_new_from_uri):
+ Only display debug messages (try to minimize warnings on import).
+
* src/io-xml/naxml-reader.c
(publish_undealt_nodes): Removed useless (and buggy) function.
(manage_import_mode): Returns all messages to the caller.
diff --git a/src/io-desktop/nadp-desktop-file.c b/src/io-desktop/nadp-desktop-file.c
index ec51eb1..0410218 100644
--- a/src/io-desktop/nadp-desktop-file.c
+++ b/src/io-desktop/nadp-desktop-file.c
@@ -289,7 +289,7 @@ nadp_desktop_file_new_from_uri( const gchar *uri )
if( error ){
if( error->code != G_KEY_FILE_ERROR_GROUP_NOT_FOUND ){
- g_warning( "%s: %s", thisfn, error->message );
+ g_debug( "%s: %s", thisfn, error->message );
}
g_error_free( error );
g_object_unref( ndf );
@@ -447,7 +447,7 @@ check_key_file( NadpDesktopFile *ndf )
/* start group must be [Desktop Entry] */
start_group = g_key_file_get_start_group( ndf->private->key_file );
if( strcmp( start_group, NADP_GROUP_DESKTOP )){
- g_warning( "%s: %s: invalid start group, found %s, waited for %s",
+ g_debug( "%s: %s: invalid start group, found %s, waited for %s",
thisfn, ndf->private->uri, start_group, NADP_GROUP_DESKTOP );
ret = FALSE;
}
@@ -456,13 +456,13 @@ check_key_file( NadpDesktopFile *ndf )
if( ret ){
has_key = g_key_file_has_key( ndf->private->key_file, start_group, NADP_KEY_HIDDEN, &error );
if( error ){
- g_warning( "%s: %s: %s", thisfn, ndf->private->uri, error->message );
+ g_debug( "%s: %s: %s", thisfn, ndf->private->uri, error->message );
ret = FALSE;
} else if( has_key ){
hidden = g_key_file_get_boolean( ndf->private->key_file, start_group, NADP_KEY_HIDDEN, &error );
if( error ){
- g_warning( "%s: %s: %s", thisfn, ndf->private->uri, error->message );
+ g_debug( "%s: %s: %s", thisfn, ndf->private->uri, error->message );
ret = FALSE;
} else if( hidden ){
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]