[nautilus-actions] Check first Type default value
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Check first Type default value
- Date: Fri, 9 Apr 2010 07:16:42 +0000 (UTC)
commit d5eee5648b6cf9363c3c3ab54b50ca142c34fef9
Author: Pierre Wieser <pwieser trychlos org>
Date: Thu Apr 8 17:01:56 2010 +0200
Check first Type default value
ChangeLog | 5 +++++
src/io-desktop/nadp-reader.c | 8 ++++----
2 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d05c8f2..eba6da3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-04-08 Pierre Wieser <pwieser trychlos org>
+
+ * src/io-desktop/nadp-reader.c (item_from_desktop_path):
+ First check Type for default value.
+
2009-04-07 Pierre Wieser <pwieser trychlos org>
* src/nact/nact-gtk-utils.c:
diff --git a/src/io-desktop/nadp-reader.c b/src/io-desktop/nadp-reader.c
index d5eefd0..9bba667 100644
--- a/src/io-desktop/nadp-reader.c
+++ b/src/io-desktop/nadp-reader.c
@@ -246,12 +246,12 @@ item_from_desktop_path( const NadpDesktopProvider *provider, DesktopPath *dps, G
item = NULL;
type = nadp_desktop_file_get_file_type( ndf );
- if( !strcmp( type, NADP_VALUE_TYPE_MENU )){
- item = NA_IFACTORY_OBJECT( na_object_menu_new());
-
- } else if( !type || !strlen( type ) || !strcmp( type, NADP_VALUE_TYPE_ACTION )){
+ if( !type || !strlen( type ) || !strcmp( type, NADP_VALUE_TYPE_ACTION )){
item = NA_IFACTORY_OBJECT( na_object_action_new());
+ } else if( !strcmp( type, NADP_VALUE_TYPE_MENU )){
+ item = NA_IFACTORY_OBJECT( na_object_menu_new());
+
} else {
g_warning( "%s: unknown type=%s", thisfn, type );
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]