summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mixer_strip.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-06-29 00:20:55 +0200
committerRobin Gareus <robin@gareus.org>2017-06-29 00:22:42 +0200
commitc3c4efaa09875bafddb2180c7f0312fad848193e (patch)
tree988d011718e0b6d6c79a4ccfeb431a2c930f6dd9 /gtk2_ardour/mixer_strip.cc
parent972e01f9c71205c537eab0f6115bd068ab6e35b1 (diff)
Use mnemonic-save API for menu-element texts
Diffstat (limited to 'gtk2_ardour/mixer_strip.cc')
-rw-r--r--gtk2_ardour/mixer_strip.cc13
1 files changed, 3 insertions, 10 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc
index 195a9de04e..6f02710e42 100644
--- a/gtk2_ardour/mixer_strip.cc
+++ b/gtk2_ardour/mixer_strip.cc
@@ -33,6 +33,7 @@
#include <gtkmm2ext/doi.h>
#include <gtkmm2ext/slider_controller.h>
#include <gtkmm2ext/bindable_button.h>
+#include "gtkmm2ext/menu_elems.h"
#include "ardour/amp.h"
#include "ardour/audio_track.h"
@@ -1094,11 +1095,7 @@ MixerStrip::maybe_add_bundle_to_input_menu (boost::shared_ptr<Bundle> b, ARDOUR:
input_menu_bundles.push_back (b);
MenuList& citems = input_menu.items();
-
- std::string n = b->name ();
- replace_all (n, "_", " ");
-
- citems.push_back (MenuElem (n, sigc::bind (sigc::mem_fun(*this, &MixerStrip::bundle_input_chosen), b)));
+ citems.push_back (MenuElemNoMnemonic (b->name (), sigc::bind (sigc::mem_fun(*this, &MixerStrip::bundle_input_chosen), b)));
}
void
@@ -1122,11 +1119,7 @@ MixerStrip::maybe_add_bundle_to_output_menu (boost::shared_ptr<Bundle> b, ARDOUR
output_menu_bundles.push_back (b);
MenuList& citems = output_menu.items();
-
- std::string n = b->name ();
- replace_all (n, "_", " ");
-
- citems.push_back (MenuElem (n, sigc::bind (sigc::mem_fun(*this, &MixerStrip::bundle_output_chosen), b)));
+ citems.push_back (MenuElemNoMnemonic (b->name (), sigc::bind (sigc::mem_fun(*this, &MixerStrip::bundle_output_chosen), b)));
}
void