Code

* Implement node snapping.
[inkscape.git] / src / event-context.h
index 638ac56f744ca2907a1ad317f0b010ea227005ee..5be2e19fb4a2163eafb87c51ff51ff66bd85f086 100644 (file)
@@ -40,8 +40,7 @@ namespace Inkscape {
 }
 
 gboolean sp_event_context_snap_watchdog_callback(gpointer data);
-void sp_event_context_snap_window_open(SPEventContext *ec, bool show_debug_warnings = true);
-void sp_event_context_snap_window_closed(SPEventContext *ec, bool show_debug_warnings = true);
+void sp_event_context_discard_delayed_snap_event(SPEventContext *ec);
 
 class DelayedSnapEvent
 {
@@ -50,7 +49,8 @@ public:
                UNDEFINED_HANDLER = 0,
                EVENTCONTEXT_ROOT_HANDLER,
                EVENTCONTEXT_ITEM_HANDLER,
-               KNOT_HANDLER
+               KNOT_HANDLER,
+               CONTROL_POINT_HANDLER
        };
 
        DelayedSnapEvent(SPEventContext *event_context, SPItem* const item, SPKnot* knot, GdkEventMotion const *event, DelayedSnapEvent::DelayedSnapEventOrigin const origin)
@@ -123,7 +123,6 @@ struct SPEventContext : public GObject {
 
     bool space_panning;
 
-    bool _snap_window_open;
     DelayedSnapEvent *_delayed_snap_event;
 };