Code

Tooltips inconsistency fix (Bug 340723)
[inkscape.git] / src / extension / internal / bitmap / adaptiveThreshold.cpp
index 5a2db5dc0de66118521803cb7547e9ca6fec2049..9183a797e3536f6402b557903ec9a8cabbf30320 100644 (file)
@@ -25,6 +25,7 @@ void
 AdaptiveThreshold::refreshParameters(Inkscape::Extension::Effect *module) {    
        _width = module->get_param_int("width");
        _height = module->get_param_int("height");
+       _offset = module->get_param_int("offset");
 }
 
 #include "../clear-n_.h"
@@ -33,17 +34,18 @@ void
 AdaptiveThreshold::init(void)
 {
        Inkscape::Extension::build_from_mem(
-               "<inkscape-extension>\n"
+               "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
                        "<name>" N_("Adaptive Threshold") "</name>\n"
                        "<id>org.inkscape.effect.bitmap.adaptiveThreshold</id>\n"
-                       "<param name=\"width\" gui-text=\"" N_("Width") "\" type=\"int\" min=\"0\" max=\"100\">5</param>\n"
-                       "<param name=\"height\" gui-text=\"" N_("Height") "\" type=\"int\" min=\"0\" max=\"100\">1</param>\n"
+                       "<param name=\"width\" gui-text=\"" N_("Width:") "\" type=\"int\" min=\"-100\" max=\"100\">5</param>\n"
+                       "<param name=\"height\" gui-text=\"" N_("Height:") "\" type=\"int\" min=\"-100\" max=\"100\">5</param>\n"
+                       "<param name=\"offset\" gui-text=\"" N_("Offset:") "\" type=\"int\" min=\"0\" max=\"100\">0</param>\n"
                        "<effect>\n"
                                "<object-type>all</object-type>\n"
                                "<effects-menu>\n"
                                        "<submenu name=\"" N_("Raster") "\" />\n"
                                "</effects-menu>\n"
-                               "<menu-tip>" N_("Apply Adaptive Threshold Effect") "</menu-tip>\n"
+                               "<menu-tip>" N_("Apply adaptive thresholding to selected bitmap(s)") "</menu-tip>\n"
                        "</effect>\n"
                "</inkscape-extension>\n", new AdaptiveThreshold());
 }