summaryrefslogtreecommitdiffstats
path: root/src/ui/draw-anchor.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2016-03-20 02:42:23 +0000
committerMartin Owens <doctormo@gmail.com>2016-03-20 02:42:23 +0000
commit2ab92c531add6a786d4a9cacf41ce33381c2ffe2 (patch)
treeab6147c665ca6828340cec8e09a7d67a8926b3a5 /src/ui/draw-anchor.cpp
parentMerge lp:~inkscape.dev/inkscape/copy-rotate-lpe-improvements (diff)
downloadinkscape-2ab92c531add6a786d4a9cacf41ce33381c2ffe2.tar.gz
inkscape-2ab92c531add6a786d4a9cacf41ce33381c2ffe2.zip
Add Shift+Enter path complete and larger square node on mouse over.
(bzr r14721)
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;