mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Sort generic-midi bindings alphabetically
This commit is contained in:
parent
3d0bf90868
commit
3cd79cd80f
1 changed files with 6 additions and 1 deletions
|
|
@ -20,6 +20,8 @@
|
|||
#include <iostream>
|
||||
#include <list>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
|
||||
#include <gtkmm/comboboxtext.h>
|
||||
#include <gtkmm/label.h>
|
||||
|
|
@ -137,12 +139,15 @@ GMCPGUI::GMCPGUI (GenericMidiControlProtocol& p)
|
|||
, ignore_active_change (false)
|
||||
{
|
||||
vector<string> popdowns;
|
||||
popdowns.push_back (_("Reset All"));
|
||||
|
||||
for (list<GenericMidiControlProtocol::MapInfo>::iterator x = cp.map_info.begin(); x != cp.map_info.end(); ++x) {
|
||||
popdowns.push_back (x->name);
|
||||
}
|
||||
|
||||
sort (popdowns.begin(), popdowns.end(), less<string>());
|
||||
|
||||
popdowns.insert (popdowns.begin(), _("Reset All"));
|
||||
|
||||
set_popdown_strings (map_combo, popdowns);
|
||||
|
||||
if (cp.current_binding().empty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue