summaryrefslogtreecommitdiff
path: root/gtk2_ardour/keyeditor.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2019-02-16 13:06:08 -0700
committerPaul Davis <paul@linuxaudiosystems.com>2019-02-16 13:06:08 -0700
commit3df88accc6b637ba8b7d59bd11a1ac0d45f7ecda (patch)
treea79c644b0476a82a64833d5d148bd0880c62b5c0 /gtk2_ardour/keyeditor.cc
parent56e950b189b73698b9daf3208d381b1e55f5757d (diff)
additional logic to avoid showing top-level menu actions in the key shortcut editor
Diffstat (limited to 'gtk2_ardour/keyeditor.cc')
-rw-r--r--gtk2_ardour/keyeditor.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk2_ardour/keyeditor.cc b/gtk2_ardour/keyeditor.cc
index a985e4daba..0f70998c09 100644
--- a/gtk2_ardour/keyeditor.cc
+++ b/gtk2_ardour/keyeditor.cc
@@ -371,8 +371,10 @@ KeyEditor::Tab::populate ()
}
//kinda kludgy way to avoid displaying menu items as mappable
- if ((action_name.find ("Menu") == action_name.length() - 4) ||
- (action_name.find ("menu") == action_name.length() - 4) ||
+ if ((action_name.find (X_("Menu")) == action_name.length() - 4) ||
+ (action_name.find (X_("menu")) == action_name.length() - 4) ||
+ (category.find (X_("Menu")) == category.length() - 4) ||
+ (category.find (X_("menu")) == category.length() - 4) ||
(action_name == _("RegionList"))) {
continue;
}