Browse Source

Ticket #2895: add support of SVG images.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Andrew Borodin 12 years ago
parent
commit
30cdf01d05
2 changed files with 7 additions and 0 deletions
  1. 3 0
      misc/ext.d/image.sh
  2. 4 0
      misc/mc.ext.in

+ 3 - 0
misc/ext.d/image.sh

@@ -32,6 +32,9 @@ do_open_action() {
     xcf)
         (gimp "${MC_EXT_FILENAME}" &)
         ;;
+    svg)
+        (inkscape "${MC_EXT_FILENAME}" &)
+        ;;
     *)
         if [ -n "$DISPLAY" ]; then
             (gqview "${MC_EXT_FILENAME}" &)

+ 4 - 0
misc/mc.ext.in

@@ -421,6 +421,10 @@ shell/.xpm
 shell/.ico
 	Include=image
 
+shell/i/.svg
+	View=%view{ascii} @EXTHELPERSDIR@/image.sh view svg
+	Open=@EXTHELPERSDIR@/image.sh open svg
+
 include/image
 	Open=@EXTHELPERSDIR@/image.sh open ALL_FORMATS
 	View=%view{ascii} @EXTHELPERSDIR@/image.sh view ALL_FORMATS