From 1d4979ede23d756e3116d0f3073727c5a267b570 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 7 Dec 2011 18:33:00 +0000 Subject: Remove cruft from public API. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3828 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/NodeModule.cpp | 5 +---- src/gui/PatchCanvas.cpp | 2 +- src/gui/PatchPortModule.cpp | 6 +----- 3 files changed, 3 insertions(+), 10 deletions(-) (limited to 'src/gui') diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp index d03119d6..034eb28d 100644 --- a/src/gui/NodeModule.cpp +++ b/src/gui/NodeModule.cpp @@ -405,10 +405,7 @@ NodeModule::property_changed(const URI& key, const Atom& value) set_stacked(value.get_bool()); } else if (key == uris.ingen_selected) { if (value.get_bool() != get_selected()) { - if (value.get_bool()) - canvas()->select_item(this); - else - canvas()->unselect_item(this); + set_selected(value.get_bool()); } } break; diff --git a/src/gui/PatchCanvas.cpp b/src/gui/PatchCanvas.cpp index a759d94f..0fd58f6e 100644 --- a/src/gui/PatchCanvas.cpp +++ b/src/gui/PatchCanvas.cpp @@ -595,7 +595,7 @@ PatchCanvas::on_event(GdkEvent* event) default: break; } - return (ret ? true : Canvas::on_event(event)); + return ret; } void diff --git a/src/gui/PatchPortModule.cpp b/src/gui/PatchPortModule.cpp index 58c05711..14edf6c5 100644 --- a/src/gui/PatchPortModule.cpp +++ b/src/gui/PatchPortModule.cpp @@ -153,11 +153,7 @@ PatchPortModule::property_changed(const URI& key, const Atom& value) set_stacked(value.get_bool()); } else if (key == uris.ingen_selected) { if (value.get_bool() != get_selected()) { - if (value.get_bool()) { - canvas()->select_item(this); - } else { - canvas()->unselect_item(this); - } + set_selected(value.get_bool()); } } default: break; -- cgit v1.2.1