summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mixer_ui.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-01-26 19:20:40 +0100
committerPaul Davis <paul@linuxaudiosystems.com>2017-01-27 22:17:53 +0100
commite5aa0d774e571878e600495cbabfe8073de0599c (patch)
treee7f3f36ca43cf2c577f5e818811b6b8dca3a7db8 /gtk2_ardour/mixer_ui.cc
parent8cb3c42548e10539c1ccb1252189d65075132828 (diff)
use RAII for class-wide PresentationInfo::Change signal, along with properties to describe what changed
Diffstat (limited to 'gtk2_ardour/mixer_ui.cc')
-rw-r--r--gtk2_ardour/mixer_ui.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc
index 00a351d60e..4ffa753e0c 100644
--- a/gtk2_ardour/mixer_ui.cc
+++ b/gtk2_ardour/mixer_ui.cc
@@ -714,6 +714,8 @@ Mixer_UI::sync_presentation_info_from_treeview ()
order++;
}
+ PresentationInfo::ChangeSuspender cs;
+
for (ri = rows.begin(); ri != rows.end(); ++ri) {
bool visible = (*ri)[stripable_columns.visible];
boost::shared_ptr<Stripable> stripable = (*ri)[stripable_columns.stripable];
@@ -742,7 +744,7 @@ Mixer_UI::sync_presentation_info_from_treeview ()
}
if (order != stripable->presentation_info().order()) {
- stripable->set_presentation_order (order, false);
+ stripable->set_presentation_order (order);
change = true;
}
@@ -765,7 +767,7 @@ Mixer_UI::sync_presentation_info_from_treeview ()
n = 0;
for (OrderingKeys::iterator sr = sorted.begin(); sr != sorted.end(); ++sr, ++n) {
if (sr->stripable->presentation_info().order() != n) {
- sr->stripable->set_presentation_order (n, false);
+ sr->stripable->set_presentation_order (n);
}
}
}
@@ -773,7 +775,6 @@ Mixer_UI::sync_presentation_info_from_treeview ()
if (change) {
DEBUG_TRACE (DEBUG::OrderKeys, "... notify PI change from mixer GUI\n");
- _session->notify_presentation_info_change ();
_session->set_dirty();
}
}