summaryrefslogtreecommitdiffstats
path: root/src/pen-context.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2009-03-29 19:12:03 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2009-03-29 19:12:03 +0000
commite180a73c03c71c51b676cc345e92d9ff0e3115e4 (patch)
tree8f26521df08d79997a0e2c77e5df852e31476559 /src/pen-context.cpp
parentrevert part of 20988 to fix rendering of LPE on groups (diff)
downloadinkscape-e180a73c03c71c51b676cc345e92d9ff0e3115e4.tar.gz
inkscape-e180a73c03c71c51b676cc345e92d9ff0e3115e4.zip
- Move snap delay mechanism to the event context (used to be in SPCanvas)
- Rename lots of variables and methods to make them easier to understand - Add snapping to the connector tool (bzr r7589)
Diffstat (limited to 'src/pen-context.cpp')
-rw-r--r--src/pen-context.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pen-context.cpp b/src/pen-context.cpp
index 7ffabcefd..beece2b31 100644
--- a/src/pen-context.cpp
+++ b/src/pen-context.cpp
@@ -208,8 +208,6 @@ sp_pen_context_setup(SPEventContext *ec)
pc = SP_PEN_CONTEXT(ec);
- sp_canvas_set_snap_delay_active(pc->desktop->canvas, true);
-
if (((SPEventContextClass *) pen_parent_class)->setup) {
((SPEventContextClass *) pen_parent_class)->setup(ec);
}
@@ -265,7 +263,7 @@ sp_pen_context_finish(SPEventContext *ec)
{
SPPenContext *pc = SP_PEN_CONTEXT(ec);
- sp_canvas_set_snap_delay_active(pc->desktop->canvas, false);
+ sp_event_context_snap_window_closed(ec, false); //TODO: Detailed implementation of the snap window; now it's simply always open
if (pc->npoints != 0) {
pen_cancel (pc);
@@ -369,6 +367,8 @@ sp_pen_context_root_handler(SPEventContext *ec, GdkEvent *event)
{
SPPenContext *const pc = SP_PEN_CONTEXT(ec);
+ sp_event_context_snap_window_open(ec, false); //TODO: Detailed implementation of the snap window; now it's simply always open
+
gint ret = FALSE;
switch (event->type) {