diff options
author | David Robillard <d@drobilla.net> | 2011-12-07 18:33:00 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-07 18:33:00 +0000 |
commit | ef96010d0f1390f0d3afdbd56cc2eea6400ebf70 (patch) | |
tree | a367178a16421f79d5d46d54c7d27ba9adab6f97 /src | |
parent | 7a0c02f70f08aa39cba1f83be690f74949a53911 (diff) | |
download | patchage-ef96010d0f1390f0d3afdbd56cc2eea6400ebf70.tar.gz patchage-ef96010d0f1390f0d3afdbd56cc2eea6400ebf70.tar.bz2 patchage-ef96010d0f1390f0d3afdbd56cc2eea6400ebf70.zip |
Remove cruft from public API.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3828 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/PatchageCanvas.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp index 732adf1..5d24227 100644 --- a/src/PatchageCanvas.cpp +++ b/src/PatchageCanvas.cpp @@ -41,6 +41,10 @@ PatchageCanvas::PatchageCanvas(Patchage* app, int width, int height) : Ganv::Canvas(width, height) , _app(app) { + signal_connect.connect( + sigc::mem_fun(this, &PatchageCanvas::connect)); + signal_disconnect.connect( + sigc::mem_fun(this, &PatchageCanvas::disconnect)); } PatchageModule* @@ -291,7 +295,7 @@ PatchageCanvas::on_connection_event(Ganv::Edge* c, GdkEvent* ev) && !(ev->button.state & GDK_SHIFT_MASK)) { clear_selection(); } - select_edge(c); + c->set_selected(true); return true; case 2: disconnect(c->get_tail(), c->get_head()); @@ -318,7 +322,7 @@ PatchageCanvas::on_event(GdkEvent* ev) return true; } - return Canvas::on_event(ev); + return false; } bool |