summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
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;