From 863ec3c3d49347fc2cdede99fcc025dae1a07417 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sun, 5 Nov 2006 18:41:15 +0000 Subject: When canvas cannot update quickly, ensure that nodes being dragged will stay selected. (bzr r1904) --- src/node-context.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/node-context.h') diff --git a/src/node-context.h b/src/node-context.h index a9b4beb07..d5067a66a 100644 --- a/src/node-context.h +++ b/src/node-context.h @@ -24,6 +24,10 @@ namespace Inkscape { class Selection; } #define SP_IS_NODE_CONTEXT(obj) (GTK_CHECK_TYPE ((obj), SP_TYPE_NODE_CONTEXT)) #define SP_IS_NODE_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), SP_TYPE_NODE_CONTEXT)) +enum { SP_NODE_CONTEXT_INACTIVE, + SP_NODE_CONTEXT_NODE_DRAGGING, + SP_NODE_CONTEXT_RUBBERBAND_DRAGGING }; + class SPNodeContext; class SPNodeContextClass; @@ -54,6 +58,8 @@ struct SPNodeContext { bool cursor_drag; bool added_node; + + unsigned int current_state; }; struct SPNodeContextClass { -- cgit v1.2.3