From 318fc50e09593d4c2303b76924c55a25b6ce8378 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 22 Apr 2012 01:37:57 +0000 Subject: Remove buggy click-to-select-edge in Patchage. If this should work, it can/should be implemented in Ganv anyway. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@4227 a436a847-0d15-0410-975c-d299462d15a1 --- src/PatchageCanvas.cpp | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'src') diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp index 31cd3b9..abb0b26 100644 --- a/src/PatchageCanvas.cpp +++ b/src/PatchageCanvas.cpp @@ -289,26 +289,6 @@ PatchageCanvas::add_module(const std::string& name, PatchageModule* module) out_module->set_partner(in_module); } -bool -PatchageCanvas::on_connection_event(Ganv::Edge* c, GdkEvent* ev) -{ - if (ev->type == GDK_BUTTON_PRESS) { - switch (ev->button.button) { - case 1: - if (!(ev->button.state & GDK_CONTROL_MASK) - && !(ev->button.state & GDK_SHIFT_MASK)) { - clear_selection(); - } - c->set_selected(true); - return true; - case 2: - disconnect(c->get_tail(), c->get_head()); - return true; - } - } - return false; -} - static void disconnect_edge(GanvEdge* edge, void* data) { @@ -334,10 +314,7 @@ PatchageCanvas::make_connection(Ganv::Node* tail, Ganv::Node* head, uint32_t color) { - Ganv::Edge* c = new Ganv::Edge(*this, tail, head, color); - c->signal_event().connect( - sigc::bind<0>(sigc::mem_fun(*this, &PatchageCanvas::on_connection_event), - c)); + new Ganv::Edge(*this, tail, head, color); return true; } -- cgit v1.2.1