diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-01-14 15:54:06 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2010-01-14 15:54:06 +0000 |
| commit | 4ffa8666045001bd3822db293ebb0b728b249492 (patch) | |
| tree | c4595e3c98a260bab48d37a342b3fdc4002fd6b6 /src/tools-switch.cpp | |
| parent | Do not append a segment when finishing an open path with right click (diff) | |
| parent | Re-enable snapping on release, for now. (diff) | |
| download | inkscape-4ffa8666045001bd3822db293ebb0b728b249492.tar.gz inkscape-4ffa8666045001bd3822db293ebb0b728b249492.zip | |
Merge GSoC 2009 node tool rewrite
(bzr r8976)
Diffstat (limited to 'src/tools-switch.cpp')
| -rw-r--r-- | src/tools-switch.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tools-switch.cpp b/src/tools-switch.cpp index 6c53ce61c..5f33453f0 100644 --- a/src/tools-switch.cpp +++ b/src/tools-switch.cpp @@ -26,7 +26,7 @@ #include <xml/repr.h> #include "select-context.h" -#include "node-context.h" +#include "ui/tool/node-tool.h" #include "tweak-context.h" #include "spray-context.h" #include "sp-path.h" @@ -126,10 +126,9 @@ tools_switch(SPDesktop *dt, int num) inkscape_eventcontext_set(sp_desktop_event_context(dt)); break; case TOOLS_NODES: - dt->set_event_context(SP_TYPE_NODE_CONTEXT, tool_names[num]); + dt->set_event_context(INK_TYPE_NODE_TOOL, tool_names[num]); dt->activate_guides(true); inkscape_eventcontext_set(sp_desktop_event_context(dt)); - dt->tipsMessageContext()->set(Inkscape::NORMAL_MESSAGE, _("To edit a path, <b>click</b>, <b>Shift+click</b>, or <b>drag around</b> nodes to select them, then <b>drag</b> nodes and handles. <b>Click</b> on an object to select.")); break; case TOOLS_TWEAK: dt->set_event_context(SP_TYPE_TWEAK_CONTEXT, tool_names[num]); |
