summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-12-07 18:33:00 +0000
committerDavid Robillard <d@drobilla.net>2011-12-07 18:33:00 +0000
commit1d4979ede23d756e3116d0f3073727c5a267b570 (patch)
tree8405ebcb3d98cda2e51b1ba04e9bf2baf0db5d8f /src/gui
parentfd04fe7efcf0434a3c6a35fd2a65c775fb383bd0 (diff)
downloadingen-1d4979ede23d756e3116d0f3073727c5a267b570.tar.gz
ingen-1d4979ede23d756e3116d0f3073727c5a267b570.tar.bz2
ingen-1d4979ede23d756e3116d0f3073727c5a267b570.zip
Remove cruft from public API.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3828 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/NodeModule.cpp5
-rw-r--r--src/gui/PatchCanvas.cpp2
-rw-r--r--src/gui/PatchPortModule.cpp6
3 files changed, 3 insertions, 10 deletions
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;