summaryrefslogtreecommitdiffstats
path: root/src/widgets/spray-toolbar.cpp
diff options
context:
space:
mode:
authorAlexandre Prokoudine <alexandre.prokoudine@gmail.com>2015-11-14 10:48:27 +0000
committerAlexandre Prokoudine <alexandre.prokoudine@gmail.com>2015-11-14 10:48:27 +0000
commitb07fe706e7b9f583c21af31e841373fadf1d6a82 (patch)
tree1e119cd7540402522256a7219bf7348942439179 /src/widgets/spray-toolbar.cpp
parentUpdate Russian translation (diff)
downloadinkscape-b07fe706e7b9f583c21af31e841373fadf1d6a82.tar.gz
inkscape-b07fe706e7b9f583c21af31e841373fadf1d6a82.zip
Some sane defaults for spray offset, subject to further tweaking
(bzr r14467)
Diffstat (limited to 'src/widgets/spray-toolbar.cpp')
-rw-r--r--src/widgets/spray-toolbar.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/widgets/spray-toolbar.cpp b/src/widgets/spray-toolbar.cpp
index db1f9526a..1774ba418 100644
--- a/src/widgets/spray-toolbar.cpp
+++ b/src/widgets/spray-toolbar.cpp
@@ -594,13 +594,15 @@ void sp_spray_toolbox_prep(SPDesktop *desktop, GtkActionGroup* mainActions, GObj
/* Offset */
{
+ gchar const* labels[] = {_("(minimum offset)"), 0, 0, 0, _("(default)"), 0, 0, _("(maximum offset)")};
+ gdouble values[] = {0, 25, 50, 75, 100, 150, 200, 1000};
EgeAdjustmentAction *eact = create_adjustment_action( "SprayToolOffsetAction",
_("Offset %"), _("Offset %:"),
_("Increase to segregate objects more (value in percent)"),
"/tools/spray/offset", 100,
GTK_WIDGET(desktop->canvas), holder, FALSE, NULL,
- 0, 10000, 1, 4,
- 0, 0, 0,
+ 0, 1000, 1, 4,
+ labels, values, G_N_ELEMENTS(labels),
sp_spray_offset_value_changed, NULL, 0 , 0);
g_object_set_data( holder, "offset", eact );
gtk_action_group_add_action( mainActions, GTK_ACTION(eact) );