summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-02-02 05:08:50 +0000
committerDavid Robillard <d@drobilla.net>2013-02-02 05:08:50 +0000
commit3e1ff3179ae986986d30e5e105279227d7b580c3 (patch)
tree5805e03bb41e60c163f78dcb7859608cdec4cc28
parent45931f9e86d6f0734a2fbdf917ff29271cced6b6 (diff)
downloadganv-3e1ff3179ae986986d30e5e105279227d7b580c3.tar.gz
ganv-3e1ff3179ae986986d30e5e105279227d7b580c3.tar.bz2
ganv-3e1ff3179ae986986d30e5e105279227d7b580c3.zip
Fix drag connecting.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5021 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/Canvas.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Canvas.cpp b/src/Canvas.cpp
index fe353fe..c96a437 100644
--- a/src/Canvas.cpp
+++ b/src/Canvas.cpp
@@ -1269,6 +1269,7 @@ GanvCanvasImpl::port_event(GdkEvent* event, GanvPort* port)
g_object_get(G_OBJECT(port), "selected", &selected, NULL);
if (!control_dragging && !selected) {
g_object_set(G_OBJECT(port), "highlighted", TRUE, NULL);
+ return true;
}
break;
@@ -1285,6 +1286,7 @@ GanvCanvasImpl::port_event(GdkEvent* event, GanvPort* port)
return true;
} else if (!control_dragging) {
g_object_set(G_OBJECT(port), "highlighted", FALSE, NULL);
+ return true;
}
break;