diff options
author | David Robillard <d@drobilla.net> | 2012-04-22 01:37:57 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-22 01:37:57 +0000 |
commit | 318fc50e09593d4c2303b76924c55a25b6ce8378 (patch) | |
tree | 1500d23ad83ab0cc8078ca55ed0938689d8c787d | |
parent | 353630d23ea6783317ca73435774b7310d0585f8 (diff) | |
download | patchage-318fc50e09593d4c2303b76924c55a25b6ce8378.tar.gz patchage-318fc50e09593d4c2303b76924c55a25b6ce8378.tar.bz2 patchage-318fc50e09593d4c2303b76924c55a25b6ce8378.zip |
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
-rw-r--r-- | src/PatchageCanvas.cpp | 25 |
1 files changed, 1 insertions, 24 deletions
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; } |