summaryrefslogtreecommitdiffstats
path: root/src/ui/draw-anchor.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-03-24 01:28:21 +0000
committerJabiertxof <jtx@jtx.marker.es>2016-03-24 01:28:21 +0000
commit718f5323cdab58042763107010fafbdc697c3c4f (patch)
tree164e442357777ac1714464415943e6869b901a8a /src/ui/draw-anchor.cpp
parentFixing Krzysztof review (diff)
parent"Backport" some Krzysztof review parts of mirror symmetry LPE also hapens on ... (diff)
downloadinkscape-718f5323cdab58042763107010fafbdc697c3c4f.tar.gz
inkscape-718f5323cdab58042763107010fafbdc697c3c4f.zip
update to trunk
(bzr r13682.1.37)
Diffstat (limited to 'src/ui/draw-anchor.cpp')
-rw-r--r--src/ui/draw-anchor.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ui/draw-anchor.cpp b/src/ui/draw-anchor.cpp
index 6b9a88ed7..e5a7a493e 100644
--- a/src/ui/draw-anchor.cpp
+++ b/src/ui/draw-anchor.cpp
@@ -26,6 +26,9 @@ using Inkscape::ControlManager;
#define FILL_COLOR_NORMAL 0xffffff7f
#define FILL_COLOR_MOUSEOVER 0xff0000ff
+#define NODE_SIZE_NORMAL 7.0
+#define NODE_SIZE_MOUSEOVER 10.0
+
/**
* Creates an anchor object and initializes it.
*/
@@ -78,14 +81,16 @@ SPDrawAnchor *sp_draw_anchor_test(SPDrawAnchor *anchor, Geom::Point w, bool acti
if ( activate && ( Geom::LInfty( w - anchor->dc->getDesktop().d2w(anchor->dp) ) <= (ctrl->box.width() / 2.0) ) ) {
if (!anchor->active) {
- g_object_set(anchor->ctrl, "fill_color", FILL_COLOR_MOUSEOVER, NULL);
+ g_object_set(anchor->ctrl, "fill_color", FILL_COLOR_MOUSEOVER,
+ "size", NODE_SIZE_MOUSEOVER, NULL);
anchor->active = TRUE;
}
return anchor;
}
if (anchor->active) {
- g_object_set(anchor->ctrl, "fill_color", FILL_COLOR_NORMAL, NULL);
+ g_object_set(anchor->ctrl, "fill_color", FILL_COLOR_NORMAL,
+ "size", NODE_SIZE_NORMAL, NULL);
anchor->active = FALSE;
}
return NULL;