summaryrefslogtreecommitdiff
path: root/libs/ardour/presentation_info.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-05-05 12:31:21 +0100
committerPaul Davis <paul@linuxaudiosystems.com>2017-05-05 18:56:25 +0100
commit0c035778e162bd5934fc0070e43a26ffb4c8825a (patch)
tree0fa5ae935d4d5effc9e3ae372d8b2905f1578110 /libs/ardour/presentation_info.cc
parentccd19ed0615bfb300bedc23ac48de7f426a7948e (diff)
libardour now has CoreSelection object to manage selection status of Stripables and AutomationControls
Diffstat (limited to 'libs/ardour/presentation_info.cc')
-rw-r--r--libs/ardour/presentation_info.cc19
1 files changed, 2 insertions, 17 deletions
diff --git a/libs/ardour/presentation_info.cc b/libs/ardour/presentation_info.cc
index f269541de0..d070f83220 100644
--- a/libs/ardour/presentation_info.cc
+++ b/libs/ardour/presentation_info.cc
@@ -30,6 +30,7 @@
#include "pbd/xml++.h"
#include "ardour/presentation_info.h"
+#include "ardour/selection.h"
#include "pbd/i18n.h"
@@ -47,7 +48,7 @@ PBD::Signal1<void,PropertyChange const &> PresentationInfo::Change;
Glib::Threads::Mutex PresentationInfo::static_signal_lock;
int PresentationInfo::_change_signal_suspended = 0;
PBD::PropertyChange PresentationInfo::_pending_static_changes;
-int PresentationInfo::selection_counter = 0;
+int PresentationInfo::selection_counter= 0;
namespace ARDOUR {
namespace Properties {
@@ -241,22 +242,6 @@ PresentationInfo::color_set () const
}
void
-PresentationInfo::set_selected (bool yn)
-{
- if (yn != selected()) {
- if (yn) {
- _flags = Flag (_flags | Selected);
- _selection_cnt = g_atomic_int_add (&selection_counter, 1);
- } else {
- _flags = Flag (_flags & ~Selected);
- _selection_cnt = 0;
- }
- send_change (PropertyChange (Properties::selected));
- send_static_change (PropertyChange (Properties::selected));
- }
-}
-
-void
PresentationInfo::set_hidden (bool yn)
{
if (yn != hidden()) {