summaryrefslogtreecommitdiff
path: root/gtk2_ardour/route_sorter.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-06-06 12:52:48 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-06-06 12:58:48 -0400
commita0f0bdc063e81fd6f98fbcb1268538106cca753a (patch)
tree09f95a08247d17e37cf3c19e54fde12919d7ea7d /gtk2_ardour/route_sorter.h
parent6a622d86dca2c8af8993d85be8bd8a44debc5b8c (diff)
try to keep editor+mixer treemodels in sync
Diffstat (limited to 'gtk2_ardour/route_sorter.h')
-rw-r--r--gtk2_ardour/route_sorter.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/route_sorter.h b/gtk2_ardour/route_sorter.h
index 1450a2c09b..e84788243c 100644
--- a/gtk2_ardour/route_sorter.h
+++ b/gtk2_ardour/route_sorter.h
@@ -24,6 +24,8 @@
#include <stdint.h>
#include <vector>
+#include "ardour/stripable.h"
+
struct OrderKeys {
uint32_t old_display_order;
uint32_t new_display_order;
@@ -41,4 +43,10 @@ struct SortByNewDisplayOrder {
}
};
+struct StripablePresentationInfoSorter {
+ bool operator() (boost::shared_ptr<ARDOUR::Stripable> a, boost::shared_ptr<ARDOUR::Stripable> b) {
+ return a->presentation_info().order () < b->presentation_info().order ();
+ }
+};
+
#endif /* __gtk2_ardour_route_sorter_h__ */