[nautilus-actions] Fix file_info_get_attribute



commit e3ee4e7ab9c3b8219f3978e856004aa64407d256
Author: Pierre Wieser <pwieser trychlos org>
Date:   Mon Mar 22 07:10:44 2010 +0100

    Fix file_info_get_attribute

 ChangeLog                   |    3 +++
 src/core/na-selected-info.c |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d0a5550..50a8efd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-03-22 Pierre Wieser <pwieser trychlos org>
 
+	* src/core/na-selected-info.c (query_file_attributes):
+	Fix file_info_get_attribute.
+
 	* src/core/na-object-action.c (na_object_action_is_candidate):
 	Considere background menu just as a special case of selection menu.
 
diff --git a/src/core/na-selected-info.c b/src/core/na-selected-info.c
index 41a9a17..06b5ccc 100644
--- a/src/core/na-selected-info.c
+++ b/src/core/na-selected-info.c
@@ -461,7 +461,7 @@ query_file_attributes( NASelectedInfo *nsi )
 	}
 
 	nsi->private->mimetype = g_strdup( g_file_info_get_attribute_as_string( info, G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE ));
-	nsi->private->file_type = ( GFileType ) g_file_info_get_attribute_int32( info, G_FILE_ATTRIBUTE_STANDARD_TYPE );
+	nsi->private->file_type = ( GFileType ) g_file_info_get_attribute_uint32( info, G_FILE_ATTRIBUTE_STANDARD_TYPE );
 
 	g_object_unref( info );
 }



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