summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-08-06 13:23:09 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-08-06 13:23:09 +0000
commita23bf5056381d396841b85c1c8da411e2d14bd45 (patch)
tree2533a8dbf3f53df444ef22b6872a6a8f8b867f52 /src/widgets
parentEsc and Ctrl+Z in pencil tool should also cancel when we're drawing straight ... (diff)
downloadinkscape-a23bf5056381d396841b85c1c8da411e2d14bd45.tar.gz
inkscape-a23bf5056381d396841b85c1c8da411e2d14bd45.zip
New mode in pen tool to draw paraxial lines
(bzr r6575)
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/toolbox.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp
index 07b388d14..ba35f7a3d 100644
--- a/src/widgets/toolbox.cpp
+++ b/src/widgets/toolbox.cpp
@@ -3290,7 +3290,7 @@ static void freehand_mode_changed(EgeSelectOneAction* act, GObject* tbl)
// preparatory work here
if (SP_IS_PEN_CONTEXT(desktop->event_context)) {
SPPenContext *pc = SP_PEN_CONTEXT(desktop->event_context);
- pc->polylines_only = (mode == 2);
+ sp_pen_context_set_polyline_mode(pc);
}
}
@@ -3326,6 +3326,13 @@ static void sp_add_freehand_mode_toggle(GtkActionGroup* mainActions, GObject* ho
1, _("Create a sequence of straight line segments"),
2, "polylines_mode",
-1 );
+
+ gtk_list_store_append( model, &iter );
+ gtk_list_store_set( model, &iter,
+ 0, _("Paraxial"),
+ 1, _("Create a sequence of paraxial line segments"),
+ 2, "paraxial_lines_mode",
+ -1 );
}
EgeSelectOneAction* act = ege_select_one_action_new(tool_is_pencil ?