warptool: change range value for strength to 0-1, max 10

This commit is contained in:
Michael Muré 2011-07-01 16:37:54 +02:00 committed by Michael Natterer
parent 379b0586e3
commit 34117fdba0
1 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ gimp_warp_options_class_init (GimpWarpOptionsClass *klass)
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_EFFECT_STRENGTH,
"effect-strength", _("Effect Strength"),
0.0, 100.0, 1.0,
0.0, 10.0, 1.0,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_EFFECT_SIZE,
@ -160,7 +160,7 @@ gimp_warp_options_gui (GimpToolOptions *tool_options)
strength = gimp_prop_spin_scale_new (config, "effect-strength",
_("Strength"),
0.01, 1.0, 2);
gimp_spin_scale_set_scale_limits (GIMP_SPIN_SCALE (strength), 0.0, 10.0);
gimp_spin_scale_set_scale_limits (GIMP_SPIN_SCALE (strength), 0.0, 1.0);
gtk_box_pack_start (GTK_BOX (vbox), strength, FALSE, FALSE, 0);
gtk_widget_show (strength);