gnome-commander r1487 - in trunk: . src/tags



Author: epiotr
Date: Tue Jan  8 22:35:40 2008
New Revision: 1487
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1487&view=rev

Log:
Set File.Format tag to "Folder" for directories

Modified:
   trunk/ChangeLog
   trunk/src/tags/gnome-cmd-tags-file.cc

Modified: trunk/src/tags/gnome-cmd-tags-file.cc
==============================================================================
--- trunk/src/tags/gnome-cmd-tags-file.cc	(original)
+++ trunk/src/tags/gnome-cmd-tags-file.cc	Tue Jan  8 22:35:40 2008
@@ -75,5 +75,6 @@
 
     finfo->metadata->add(TAG_FILE_PERMISSIONS, perm2textstring(finfo->info->permissions,buff,sizeof(buff)));
 
-    finfo->metadata->add(TAG_FILE_FORMAT, finfo->info->mime_type);
+    finfo->metadata->add(TAG_FILE_FORMAT, finfo->info->type==GNOME_VFS_FILE_TYPE_DIRECTORY ? "Folder" : finfo->info->mime_type);
+
 }



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