diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-12-03 09:15:10 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-06-29 14:18:14 -0400 |
commit | c2476ea73da79237984fb4cedb397033d0bd62ec (patch) | |
tree | 0a005de14835f25ffa3241eac9e186eeaa7014d8 /libs/ardour/scene_change.cc | |
parent | 51d2804535b7bab8dbd96da8c8ae02d65c9347c1 (diff) |
add API for controlling and determining active status of a SceneChange
Conflicts:
libs/ardour/ardour/scene_change.h
Diffstat (limited to 'libs/ardour/scene_change.cc')
-rw-r--r-- | libs/ardour/scene_change.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/ardour/scene_change.cc b/libs/ardour/scene_change.cc index 6560a7ca2f..322b37a195 100644 --- a/libs/ardour/scene_change.cc +++ b/libs/ardour/scene_change.cc @@ -41,6 +41,7 @@ SceneChange::factory (const XMLNode& node, int version) SceneChange::SceneChange () : _color (out_of_bound_color) + , _active (true) { } @@ -56,3 +57,12 @@ SceneChange::color() const { return _color; } + +void +SceneChange::set_active (bool yn) +{ + if (_active != yn) { + _active = yn; + ActiveChanged (); /* EMIT SIGNAL */ + } +} |