summaryrefslogtreecommitdiffstats
path: root/src/gradient-drag.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2017-06-30 15:39:02 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2017-06-30 15:39:02 +0000
commit9f76180aa2939384a17b4ea85fdfd0c1acbe5736 (patch)
tree8007d5bc53455c845d296885429bea0ed3d6c80d /src/gradient-drag.cpp
parentHackfest: Show dropper color in cursor, while moving the mouse. (diff)
downloadinkscape-9f76180aa2939384a17b4ea85fdfd0c1acbe5736.tar.gz
inkscape-9f76180aa2939384a17b4ea85fdfd0c1acbe5736.zip
Starting selectable knots
Diffstat (limited to 'src/gradient-drag.cpp')
-rw-r--r--src/gradient-drag.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp
index 006e2f790..103a3df9c 100644
--- a/src/gradient-drag.cpp
+++ b/src/gradient-drag.cpp
@@ -1517,7 +1517,7 @@ void GrDragger::updateKnotShape()
// For highlighting mesh handles corresponding to selected corner
if (this->knot->shape == SP_KNOT_SHAPE_TRIANGLE) {
- this->knot->setFill(GR_KNOT_COLOR_HIGHLIGHT, GR_KNOT_COLOR_MOUSEOVER, GR_KNOT_COLOR_MOUSEOVER);
+ this->knot->setFill(GR_KNOT_COLOR_HIGHLIGHT, GR_KNOT_COLOR_MOUSEOVER, GR_KNOT_COLOR_MOUSEOVER, GR_KNOT_COLOR_MOUSEOVER);
if (gr_knot_shapes[last->point_type] == SP_KNOT_SHAPE_CIRCLE) {
g_object_set (G_OBJECT (this->knot->item), "shape", SP_KNOT_SHAPE_TRIANGLE, NULL);
}
@@ -1664,8 +1664,8 @@ GrDragger::GrDragger(GrDrag *parent, Geom::Point p, GrDraggable *draggable)
if (draggable && draggable->point_type == POINT_MG_CORNER) {
fill_color = GR_KNOT_COLOR_MESHCORNER;
}
- this->knot->setFill(fill_color, GR_KNOT_COLOR_MOUSEOVER, GR_KNOT_COLOR_MOUSEOVER);
- this->knot->setStroke(0x0000007f, 0x0000007f, 0x0000007f);
+ this->knot->setFill(fill_color, GR_KNOT_COLOR_MOUSEOVER, GR_KNOT_COLOR_MOUSEOVER, GR_KNOT_COLOR_MOUSEOVER);
+ this->knot->setStroke(0x0000007f, 0x0000007f, 0x0000007f, 0x0000007f);
this->updateControlSizesOverload(this->knot);
this->knot->updateCtrl();
@@ -1837,9 +1837,9 @@ void GrDragger::highlightNode(SPMeshNode* node, bool highlight, Geom::Point corn
SPKnot *knot = d->knot;
if (highlight) {
- knot->setFill(GR_KNOT_COLOR_HIGHLIGHT, GR_KNOT_COLOR_MOUSEOVER, GR_KNOT_COLOR_MOUSEOVER);
+ knot->setFill(GR_KNOT_COLOR_HIGHLIGHT, GR_KNOT_COLOR_MOUSEOVER, GR_KNOT_COLOR_MOUSEOVER, GR_KNOT_COLOR_MOUSEOVER);
} else {
- knot->setFill(GR_KNOT_COLOR_NORMAL, GR_KNOT_COLOR_MOUSEOVER, GR_KNOT_COLOR_MOUSEOVER);
+ knot->setFill(GR_KNOT_COLOR_NORMAL, GR_KNOT_COLOR_MOUSEOVER, GR_KNOT_COLOR_MOUSEOVER, GR_KNOT_COLOR_MOUSEOVER);
}
if (type == POINT_MG_HANDLE) {