[Xfce4-commits] r26395 - in thunar/trunk: . plugins/thunar-uca

Benedikt Meurer benny at xfce.org
Wed Nov 28 20:15:27 CET 2007


Author: benny
Date: 2007-11-28 19:15:27 +0000 (Wed, 28 Nov 2007)
New Revision: 26395

Modified:
   thunar/trunk/ChangeLog
   thunar/trunk/plugins/thunar-uca/thunar-uca-model.c
Log:
2007-11-28	Benedikt Meurer <benny at xfce.org>

	* plugins/thunar-uca/thunar-uca-model.c: Properly recognize
	  OGG files as audio files. Bug #3604.




Modified: thunar/trunk/ChangeLog
===================================================================
--- thunar/trunk/ChangeLog	2007-11-28 18:20:55 UTC (rev 26394)
+++ thunar/trunk/ChangeLog	2007-11-28 19:15:27 UTC (rev 26395)
@@ -1,5 +1,10 @@
 2007-11-28	Benedikt Meurer <benny at xfce.org>
 
+	* plugins/thunar-uca/thunar-uca-model.c: Properly recognize
+	  OGG files as audio files. Bug #3604.
+
+2007-11-28	Benedikt Meurer <benny at xfce.org>
+
 	* plugins/thunar-sbr/: Import new date renamer based on patch
 	  from Nick Schermer <nick at xfce.org>. Bug #3656.
 	* docs/manual/: Update the user manual.

Modified: thunar/trunk/plugins/thunar-uca/thunar-uca-model.c
===================================================================
--- thunar/trunk/plugins/thunar-uca/thunar-uca-model.c	2007-11-28 18:20:55 UTC (rev 26394)
+++ thunar/trunk/plugins/thunar-uca/thunar-uca-model.c	2007-11-28 19:15:27 UTC (rev 26395)
@@ -973,8 +973,22 @@
     return THUNAR_UCA_TYPE_TEXT_FILES;
   else if (strncmp (mime_type, "video/", 6) == 0)
     return THUNAR_UCA_TYPE_VIDEO_FILES;
-  else
-    return 0;
+  else if (strncmp (mime_type, "application/", 12) == 0)
+    {
+      /* quite cumbersome, certain mime types do not
+       * belong here, but despite that fact, they are...
+       */
+      mime_type += 12;
+      if (strcmp (mime_type, "javascript") == 0
+          || strcmp (mime_type, "x-awk") == 0
+          || strcmp (mime_type, "x-csh") == 0
+          || strcmp (mime_type, "xhtml+xml") == 0
+          || strcmp (mime_type, "xml") == 0)
+        return THUNAR_UCA_TYPE_TEXT_FILES;
+      else if (strcmp (mime_type, "ogg") == 0)
+        return THUNAR_UCA_TYPE_AUDIO_FILES;
+    }
+  return 0;
 }
 
 



More information about the Xfce4-commits mailing list