projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9748656
)
Consolidate code: use libardour API to sort scripts
author
Robin Gareus
<robin@gareus.org>
Thu, 18 Jul 2019 13:50:34 +0000
(15:50 +0200)
committer
Robin Gareus
<robin@gareus.org>
Thu, 18 Jul 2019 13:52:32 +0000
(15:52 +0200)
gtk2_ardour/session_dialog.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/session_dialog.cc
b/gtk2_ardour/session_dialog.cc
index b08eda48407550082886092d36a78d12f03cd798..11b01d8948bb6c60d85913b145b8f3f55a917bb9 100644
(file)
--- a/
gtk2_ardour/session_dialog.cc
+++ b/
gtk2_ardour/session_dialog.cc
@@
-564,14
+564,6
@@
SessionDialog::open_button_pressed (GdkEventButton* ev)
return true;
}
return true;
}
-struct LuaScriptListSorter
-{
- bool operator() (LuaScriptInfoPtr const a, LuaScriptInfoPtr const b) const {
- return ARDOUR::cmp_nocase_utf8 (a->name, b->name) < 0;
- }
-};
-
-
void
SessionDialog::populate_session_templates ()
{
void
SessionDialog::populate_session_templates ()
{
@@
-592,8
+584,7
@@
SessionDialog::populate_session_templates ()
}
}
}
}
- LuaScriptListSorter cmp;
- std::sort (scripts.begin(), scripts.end(), cmp);
+ std::sort (scripts.begin(), scripts.end(), LuaScripting::Sorter());
for (LuaScriptList::const_iterator s = scripts.begin(); s != scripts.end(); ++s) {
TreeModel::Row row = *(template_model->append ());
for (LuaScriptList::const_iterator s = scripts.begin(); s != scripts.end(); ++s) {
TreeModel::Row row = *(template_model->append ());