diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-07-09 07:02:36 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-07-09 07:02:36 +0000 |
| commit | 7f676eccb95c6e692f51f5ae56e5501e52cf5d7e (patch) | |
| tree | 9f3bb857658b6f2f09a2e64c60609e73bd7bbb0e /src/widgets/toolbox.cpp | |
| parent | Fixed icon loading, cacheing and fallback to use stock mechanisms. (diff) | |
| download | inkscape-7f676eccb95c6e692f51f5ae56e5501e52cf5d7e.tar.gz inkscape-7f676eccb95c6e692f51f5ae56e5501e52cf5d7e.zip | |
tolerance => smoothing, add presets
(bzr r6243)
Diffstat (limited to 'src/widgets/toolbox.cpp')
| -rw-r--r-- | src/widgets/toolbox.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index 8f3c570c5..96eb2711a 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -3467,16 +3467,17 @@ static void sp_pencil_toolbox_prep(SPDesktop *desktop, GtkActionGroup* mainActio /* Tolerance */ { - + gchar const* labels[] = {_("(many nodes, rough)"), ("(default)"), 0, 0, 0, 0, ("(few nodes, smooth)")}; + gdouble values[] = {1, 10, 20, 30, 50, 75, 100}; eact = create_adjustment_action( "PencilToleranceAction", - _("Number of pixels allowed in interpolating"), - _("Tolerance:"), _("Tolerance"), + _("Smoothing:"), _("Smoothing"), + _("How much smoothing (simplifying) is applied to the line"), "tools.freehand.pencil", "tolerance", 3.0, GTK_WIDGET(desktop->canvas), NULL, holder, TRUE, "altx-pencil", - 0.5, 100.0, 0.5, 0, - NULL, NULL, 0, + 1, 100.0, 0.5, 0, + labels, values, G_N_ELEMENTS(labels), sp_pencil_tb_tolerance_value_changed, 1, 2); ege_adjustment_action_set_appearance( eact, TOOLBAR_SLIDER_HINT ); |
