[nautilus-actions] nautilus-actions-new: fix default mimetype



commit 6251b48ec4fed9ed283781db90224e3a5030c1cb
Author: Pierre Wieser <pwieser trychlos org>
Date:   Mon Feb 21 06:44:07 2011 +0100

    nautilus-actions-new: fix default mimetype

 ChangeLog                        |    2 ++
 src/utils/nautilus-actions-new.c |    6 ++----
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 83451ad..feed274 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2011-02-21 Pierre Wieser <pwieser trychlos org>
 
+	* src/utils/nautilus-actions-new.c: Fix default mimetype.
+
 	* src/core/na-icontext.c (get_running_environment): New function.
 
 	* src/utils/na-print-schemas.c: Also display menu schemas.
diff --git a/src/utils/nautilus-actions-new.c b/src/utils/nautilus-actions-new.c
index 64b1d61..41cb881 100644
--- a/src/utils/nautilus-actions-new.c
+++ b/src/utils/nautilus-actions-new.c
@@ -457,11 +457,9 @@ get_action_from_cmdline( void )
 		g_warning( "%s", msg );
 		g_free( msg );
 	}
-	if( isfile && isdir ){
-		mimetypes = g_slist_prepend( mimetypes, g_strdup( "*/*" ));
-	} else if( isfile ){
+	if( isfile && !isdir ){
 		mimetypes = g_slist_prepend( mimetypes, g_strdup( "all/allfiles" ));
-	} else {
+	} else if( isdir && !isfile ){
 		mimetypes = g_slist_prepend( mimetypes, g_strdup( "inode/directory" ));
 	}
 	i = 0;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]