Code

Added code to initialize DBus (if enabled.)
[inkscape.git] / src / extension / internal / svgz.cpp
index 49d37f082e83d3db804685778465f2b8ca13d8e3..2c15120e79c084897d327e4b845d8b61ffb87ee9 100644 (file)
@@ -43,13 +43,13 @@ Svgz::init(void)
 
     /* SVGZ in */
     ext = Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>" N_("SVGZ Input") "</name>\n"
             "<id>" SP_MODULE_KEY_INPUT_SVGZ "</id>\n"
             "<dependency type=\"extension\">" SP_MODULE_KEY_INPUT_SVG "</dependency>\n"
             "<input>\n"
                 "<extension>.svgz</extension>\n"
-                "<mimetype>image/x-svgz</mimetype>\n"
+                "<mimetype>image/svg+xml-compressed</mimetype>\n"
                 "<filetypename>" N_("Compressed Inkscape SVG (*.svgz)") "</filetypename>\n"
                 "<filetypetooltip>" N_("SVG file format compressed with GZip") "</filetypetooltip>\n"
                 "<output_extension>" SP_MODULE_KEY_OUTPUT_SVGZ_INKSCAPE "</output_extension>\n"
@@ -58,26 +58,26 @@ Svgz::init(void)
 
        /* SVGZ out Inkscape */
     ext = Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>" N_("SVGZ Output") "</name>\n"
             "<id>" SP_MODULE_KEY_OUTPUT_SVGZ_INKSCAPE "</id>\n"
             "<output>\n"
                 "<extension>.svgz</extension>\n"
-                "<mimetype>image/x-svgz</mimetype>\n"
+                "<mimetype>image/x-inkscape-svg-compressed</mimetype>\n"
                 "<filetypename>" N_("Compressed Inkscape SVG (*.svgz)") "</filetypename>\n"
                 "<filetypetooltip>" N_("Inkscape's native file format compressed with GZip") "</filetypetooltip>\n"
-                "<dataloss>FALSE</dataloss>\n"
+                "<dataloss>false</dataloss>\n"
             "</output>\n"
         "</inkscape-extension>", new Svgz());
 
        /* SVGZ out */
     ext = Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>" N_("SVGZ Output") "</name>\n"
             "<id>" SP_MODULE_KEY_OUTPUT_SVGZ "</id>\n"
             "<output>\n"
                 "<extension>.svgz</extension>\n"
-                "<mimetype>image/x-svgz</mimetype>\n"
+                "<mimetype>image/svg+xml-compressed</mimetype>\n"
                 "<filetypename>" N_("Compressed plain SVG (*.svgz)") "</filetypename>\n"
                 "<filetypetooltip>" N_("Scalable Vector Graphics format compressed with GZip") "</filetypetooltip>\n"
             "</output>\n"