Code

add labels
authorbuliabyak <buliabyak@users.sourceforge.net>
Sat, 3 Jan 2009 01:37:25 +0000 (01:37 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sat, 3 Jan 2009 01:37:25 +0000 (01:37 +0000)
src/extension/internal/filter/drop-shadow.h
src/extension/internal/filter/snow.h

index 4a02086e22fc0ba4e8ca02e1f7ceb0ded1f2c761..b83d3d44b9c5f98651d03063aafae70aa0b3752e 100644 (file)
@@ -63,7 +63,7 @@ DropShadow::get_filter_text (Inkscape::Extension::Extension * ext)
        float y = ext->get_param_float("yoffset");
 
        _filter = g_strdup_printf(
-               "<filter width=\"1.5\" height=\"1.5\" x=\"-.25\" y=\"-.25\">\n"
+               "<filter xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" inkscape:label=\"Drop shadow\" width=\"1.5\" height=\"1.5\" x=\"-.25\" y=\"-.25\">\n"
                        "<feGaussianBlur in=\"SourceAlpha\" stdDeviation=\"%f\" result=\"blur\"/>\n"
                         "<feColorMatrix result=\"bluralpha\" type=\"matrix\" values=\"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 %f 0 \" />\n"
                        "<feOffset in=\"bluralpha\" dx=\"%f\" dy=\"%f\" result=\"offsetBlur\"/>\n"
@@ -118,7 +118,7 @@ DropGlow::get_filter_text (Inkscape::Extension::Extension * ext)
        float y = ext->get_param_float("yoffset");
 
        _filter = g_strdup_printf(
-               "<filter width=\"1.5\" height=\"1.5\" x=\"-.25\" y=\"-.25\">\n"
+               "<filter xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" inkscape:label=\"Drop shadow\" width=\"1.5\" height=\"1.5\" x=\"-.25\" y=\"-.25\">\n"
                        "<feGaussianBlur in=\"SourceAlpha\" stdDeviation=\"%f\" result=\"blur\"/>\n"
                         "<feColorMatrix result=\"bluralpha\" type=\"matrix\" values=\"-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 %f 0 \" />\n"
                        "<feOffset in=\"bluralpha\" dx=\"%f\" dy=\"%f\" result=\"offsetBlur\"/>\n"
index cf506575422ae4d201983d87a3912c3e6f1145a7..0a351539aeab1ea7e824e95f8b433722903cd858 100644 (file)
@@ -29,14 +29,14 @@ public:
        static void init (void) {
                Inkscape::Extension::build_from_mem(
                        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
-                               "<name>" N_("Snow") "</name>\n"
+                               "<name>" N_("Snow crest") "</name>\n"
                                "<id>org.inkscape.effect.filter.snow</id>\n"
                                "<param name=\"drift\" gui-text=\"" N_("Drift Size") "\" type=\"float\" min=\"0.0\" max=\"20.0\">3.5</param>\n"
                                "<effect>\n"
                                        "<object-type>all</object-type>\n"
                                        "<effects-menu>\n"
                                                "<submenu name=\"" N_("Filters") "\">\n"
-                                               "<submenu name=\"Shadows and Glows\"/>\n"
+                                               "<submenu name=\"Imitations\"/>\n"
                              "</submenu>\n"
                                        "</effects-menu>\n"
                                        "<menu-tip>" N_("Snow has fallen on object") "</menu-tip>\n"
@@ -54,7 +54,7 @@ Snow::get_filter_text (Inkscape::Extension::Extension * ext)
        float drift = ext->get_param_float("drift");
 
        _filter = g_strdup_printf(
-                               "<filter>\n"
+                               "<filter xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" inkscape:label=\"Snow\">\n"
                                        "<feConvolveMatrix order=\"3 3\" kernelMatrix=\"1 1 1 0 0 0 -1 -1 -1\" preserveAlpha=\"false\" divisor=\"3\"/>\n"
                                        "<feMorphology operator=\"dilate\" radius=\"1 %f\"/>\n"
                                        "<feGaussianBlur stdDeviation=\"1.6270889487870621\" result=\"result0\"/>\n"