From 81de4ad22309c0ac8899bd9d257b5db5dac4f0fa Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 16 Feb 2015 03:09:05 +0000 Subject: Preserve selection for quickly making several connections. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5575 a436a847-0d15-0410-975c-d299462d15a1 --- NEWS | 3 ++- src/Canvas.cpp | 5 ----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/NEWS b/NEWS index 8f94ef8..159e51b 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ ganv (1.5.0) unstable; * Fix positioning of embedded widgets when changing layout. * Fix unexpected node jumping when dragging new connections. + * Preserve selection for quickly making several connections. * Add support for PDF and PS export. * Improve text rendering at high zoom. * Fix various minor visual alignment/sizing issues. @@ -9,7 +10,7 @@ ganv (1.5.0) unstable; * Fix compilation with --no-fdgl (patch from Vlad Glagolev). * Fix crash when destroying canvas. - -- David Robillard Tue, 10 Feb 2015 23:58:57 -0500 + -- David Robillard Sun, 15 Feb 2015 21:59:18 -0500 ganv (1.4.2) stable; diff --git a/src/Canvas.cpp b/src/Canvas.cpp index c3ed2f6..d193108 100644 --- a/src/Canvas.cpp +++ b/src/Canvas.cpp @@ -1385,17 +1385,14 @@ GanvCanvasImpl::connect_drag_handler(GdkEvent* event) } else { // Connect to selected ports selection_joined_with(_connect_port); - unselect_ports(); _connect_port = NULL; } } else { // drag ended on different port ports_joined(_connect_port, GANV_PORT(joinee)); - unselect_ports(); _connect_port = NULL; } } - unselect_ports(); end_connect_drag(); return true; } @@ -1526,7 +1523,6 @@ GanvCanvasImpl::port_event(GdkEvent* event, GanvPort* port) if (port_dragging) { if (_connect_port) { // dragging ports_joined(port, _connect_port); - unselect_ports(); } else { port_clicked(event, port); } @@ -1616,7 +1612,6 @@ GanvCanvasImpl::port_clicked(GdkEvent* event, GanvPort* port) if (!modded && _last_selected_port && _last_selected_port->impl->is_input != port->impl->is_input) { selection_joined_with(port); - unselect_ports(); } else { select_port_toggle(port, event->button.state); } -- cgit v1.2.1