Commit c0900b6f authored by Benedikt Meurer's avatar Benedikt Meurer

2007-11-28 Benedikt Meurer <benny@xfce.org>

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




(Old svn revision: 26395)
parent 3f1b4790
2007-11-28 Benedikt Meurer <benny@xfce.org>
* plugins/thunar-uca/thunar-uca-model.c: Properly recognize
OGG files as audio files. Bug #3604.
2007-11-28 Benedikt Meurer <benny@xfce.org>
* plugins/thunar-sbr/: Import new date renamer based on patch
......
......@@ -973,8 +973,22 @@ types_from_mime_type (const gchar *mime_type)
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment