[nautilus-actions] Fix check of required keys
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Fix check of required keys
- Date: Tue, 1 Dec 2009 22:45:21 +0000 (UTC)
commit 914011ea9a4aa5ec41d182e495f7eef1076ff9aa
Author: Pierre Wieser <pwieser trychlos org>
Date: Tue Dec 1 23:13:27 2009 +0100
Fix check of required keys
ChangeLog | 3 +++
.../io-provider-desktop/nadp-desktop-file.c | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 636cb8b..8ed2b8d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
2009-12-01 Pierre Wieser <pwieser trychlos org>
* nautilus-actions/io-provider-desktop/nadp-desktop-file.c
+ (check_key_file): Fix check of required keys.
+
+ * nautilus-actions/io-provider-desktop/nadp-desktop-file.c
(nadp_desktop_file_set_label, nadp_desktop_file_set_tooltip):
Fix locale.
diff --git a/nautilus-actions/io-provider-desktop/nadp-desktop-file.c b/nautilus-actions/io-provider-desktop/nadp-desktop-file.c
index 1ff0b8b..49b3f90 100644
--- a/nautilus-actions/io-provider-desktop/nadp-desktop-file.c
+++ b/nautilus-actions/io-provider-desktop/nadp-desktop-file.c
@@ -279,7 +279,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, G_KEY_FILE_DESKTOP_GROUP )){
+ if( strcmp( start_group, G_KEY_FILE_DESKTOP_GROUP )){
g_warning( "%s: %s: invalid start group, found %s, waited for %s",
thisfn, ndf->private->path, start_group, G_KEY_FILE_DESKTOP_GROUP );
ret = FALSE;
@@ -295,7 +295,7 @@ check_key_file( NadpDesktopFile *ndf )
g_warning( "%s: %s: %s", thisfn, ndf->private->path, error->message );
g_error_free( error );
ret = FALSE;
- } else if( !strcmp( type, G_KEY_FILE_DESKTOP_TYPE_APPLICATION )){
+ } else if( strcmp( type, G_KEY_FILE_DESKTOP_TYPE_APPLICATION )){
ret = FALSE;
}
g_free( type );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]