summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2009-04-12 13:32:00 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2009-04-12 13:32:00 +0000
commitc3bc5983d53ada2941694d354808d8416f77eea4 (patch)
treeaa0f61955f12ea99107c3bb9a92293170517e4d4 /src
parentUse the line intersection routines in 2geom/line.h instead of the deprecated ... (diff)
downloadinkscape-c3bc5983d53ada2941694d354808d8416f77eea4.tar.gz
inkscape-c3bc5983d53ada2941694d354808d8416f77eea4.zip
Improved wording for the snap indicator: gradients snap to their parent's bounding box, so the snap indicator now displays "bla bla to bounding box"
(bzr r7689)
Diffstat (limited to 'src')
-rw-r--r--src/display/snap-indicator.cpp4
-rw-r--r--src/gradient-drag.cpp4
-rw-r--r--src/snapped-point.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/display/snap-indicator.cpp b/src/display/snap-indicator.cpp
index 39222d174..49433efe2 100644
--- a/src/display/snap-indicator.cpp
+++ b/src/display/snap-indicator.cpp
@@ -94,8 +94,8 @@ SnapIndicator::set_new_snaptarget(Inkscape::SnappedPoint const p)
case SNAPTARGET_BBOX_EDGE:
target_name = _("bounding box side");
break;
- case SNAPTARGET_GRADIENT:
- target_name = _("gradient level");
+ case SNAPTARGET_GRADIENTS_PARENT_BBOX:
+ target_name = _("bounding box");
break;
case SNAPTARGET_PAGE_BORDER:
target_name = _("page border");
diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp
index 4758d27bf..c16ed2456 100644
--- a/src/gradient-drag.cpp
+++ b/src/gradient-drag.cpp
@@ -609,7 +609,7 @@ gr_knot_moved_handler(SPKnot *knot, Geom::Point const &ppointer, guint state, gp
dist = fabs(p[Geom::Y] - dragger->parent->hor_levels[i]);
if (dist < snap_dist) {
p[Geom::Y] = dragger->parent->hor_levels[i];
- s = Inkscape::SnappedPoint(p, Inkscape::SNAPSOURCE_HANDLE, Inkscape::SNAPTARGET_GRADIENT, dist, snap_dist, false, false);
+ s = Inkscape::SnappedPoint(p, Inkscape::SNAPSOURCE_HANDLE, Inkscape::SNAPTARGET_GRADIENTS_PARENT_BBOX, dist, snap_dist, false, false);
was_snapped = true;
sp_knot_moveto (knot, p);
}
@@ -618,7 +618,7 @@ gr_knot_moved_handler(SPKnot *knot, Geom::Point const &ppointer, guint state, gp
dist = fabs(p[Geom::X] - dragger->parent->vert_levels[i]);
if (dist < snap_dist) {
p[Geom::X] = dragger->parent->vert_levels[i];
- s = Inkscape::SnappedPoint(p, Inkscape::SNAPSOURCE_HANDLE, Inkscape::SNAPTARGET_GRADIENT, dist, snap_dist, false, false);
+ s = Inkscape::SnappedPoint(p, Inkscape::SNAPSOURCE_HANDLE, Inkscape::SNAPTARGET_GRADIENTS_PARENT_BBOX, dist, snap_dist, false, false);
was_snapped = true;
sp_knot_moveto (knot, p);
}
diff --git a/src/snapped-point.h b/src/snapped-point.h
index cc224452d..ee7c12aa7 100644
--- a/src/snapped-point.h
+++ b/src/snapped-point.h
@@ -39,7 +39,7 @@ enum SnapTargetType {
SNAPTARGET_BBOX_EDGE,
SNAPTARGET_BBOX_EDGE_MIDPOINT,
SNAPTARGET_BBOX_MIDPOINT,
- SNAPTARGET_GRADIENT,
+ SNAPTARGET_GRADIENTS_PARENT_BBOX,
SNAPTARGET_PAGE_BORDER,
SNAPTARGET_PAGE_CORNER,
SNAPTARGET_CONVEX_HULL_CORNER,