]> spindle.queued.net Git - midori/commitdiff
Spacing and use ascii checkmarks for codecs in about:
authorChristian Dywan <christian@twotoasts.de>
Sat, 25 Feb 2012 01:42:50 +0000 (02:42 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sat, 25 Feb 2012 01:42:50 +0000 (02:42 +0100)
midori/midori-view.c

index a94881fa68eb5e8042e40dabcc564a18edc3a1a1..809a2c37c56cd93ca93fbc7f558a4213b7c72a9f 100644 (file)
@@ -3710,13 +3710,14 @@ list_video_formats ()
     gchar* value = sokoke_js_script_eval (js_context,
         "var supported = function (format) { "
         "var video = document.createElement('video');"
-        "return !!video.canPlayType && video.canPlayType (format) != 'no' };"
-        "' H264: ' + "
-        "supported('video/mp4; codecs=\"avc1.42E01E, mp4a.40.2\"') + "
-        "' Ogg Theora: ' + "
-        "supported('video/ogg; codecs=\"theora, vorbis\"') + "
-        "' WebM: ' + "
-        "supported('video/webm; codecs=\"vp8, vorbis\"')"
+        "return !!video.canPlayType && video.canPlayType (format) != 'no' "
+        "? 'x' : '&nbsp;&nbsp;'; };"
+        "' H264 [' +"
+        "supported('video/mp4; codecs=\"avc1.42E01E, mp4a.40.2\"') + ']' + "
+        "' &nbsp; Ogg Theora [' + "
+        "supported('video/ogg; codecs=\"theora, vorbis\"') + ']' + "
+        "' &nbsp; WebM [' + "
+        "supported('video/webm; codecs=\"vp8, vorbis\"') + ']' "
         "", NULL);
     gtk_widget_destroy (web_view);
     return value;