summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2009-01-17 21:20:50 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2009-01-17 21:20:50 +0000
commit3cf8593f3ca3286788b1fc2c67dff7b3401a425b (patch)
tree1511c7e1ddfd1b3e7f96469be9f12d72e745ba20
parentfix/revert 20519 and 20521 (diff)
downloadinkscape-3cf8593f3ca3286788b1fc2c67dff7b3401a425b.tar.gz
inkscape-3cf8593f3ca3286788b1fc2c67dff7b3401a425b.zip
snap indicator: try a diamond shaped indicator for snapping to nodes. see how we like this.
(bzr r7143)
-rw-r--r--src/display/snap-indicator.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/display/snap-indicator.cpp b/src/display/snap-indicator.cpp
index d642816af..c21bd3dbc 100644
--- a/src/display/snap-indicator.cpp
+++ b/src/display/snap-indicator.cpp
@@ -56,12 +56,22 @@ SnapIndicator::set_new_snaptarget(Inkscape::SnappedPoint const p)
SPCanvasItem * canvasitem = NULL;
switch (p.getTarget()) {
/// @todo add the different kinds of snapindicator visuals
+ case SNAPTARGET_NODE:
+ canvasitem = sp_canvas_item_new(sp_desktop_tempgroup (_desktop),
+ SP_TYPE_CTRL,
+ "anchor", GTK_ANCHOR_CENTER,
+ "size", 10.0,
+ "stroked", TRUE,
+ "stroke_color", 0xf000f0ff,
+ "mode", SP_KNOT_MODE_XOR,
+ "shape", SP_KNOT_SHAPE_DIAMOND,
+ NULL );
+ break;
case SNAPTARGET_GRID:
case SNAPTARGET_GRID_INTERSECTION:
case SNAPTARGET_GUIDE:
case SNAPTARGET_GUIDE_INTERSECTION:
case SNAPTARGET_GRID_GUIDE_INTERSECTION:
- case SNAPTARGET_NODE:
case SNAPTARGET_PATH:
case SNAPTARGET_PATH_INTERSECTION:
case SNAPTARGET_BBOX_CORNER: