diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-11-29 18:47:24 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-11-29 18:47:24 +0000 |
commit | 8dc368badd835faf08c86c8a377c4df2a9d4f596 (patch) | |
tree | 027f7d4a8364762f26f77bb6c568789c39240386 /gtk2_ardour/keyeditor.cc | |
parent | 54cbca8aa3ea0cde814ed0eff3eb985977e3854f (diff) |
fix bug with insert region when no track is selected; make keybindings editor show apple-like names for modifiers; fix range marker menu; fix mapping of keybindings to Quartz equivalents; make cycle-edit-point work without marker unless specifically requested
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2728 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/keyeditor.cc')
-rw-r--r-- | gtk2_ardour/keyeditor.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk2_ardour/keyeditor.cc b/gtk2_ardour/keyeditor.cc index 8bf40b636d..e340ac0d69 100644 --- a/gtk2_ardour/keyeditor.cc +++ b/gtk2_ardour/keyeditor.cc @@ -8,6 +8,7 @@ #include <gtkmm/uimanager.h> #include <pbd/strsplit.h> +#include <pbd/replace_all.h> #include "actions.h" #include "keyboard.h" @@ -18,6 +19,7 @@ using namespace std; using namespace Gtk; using namespace Gdk; +using namespace PBD; KeyEditor::KeyEditor () : ArdourDialog (_("Keybinding Editor"), false) @@ -180,7 +182,16 @@ KeyEditor::populate () if (*k == ActionManager::unbound_string) { row[columns.binding] = string(); } else { + +#ifdef GTKOSX + string label = (*k); + replace_all (label, "<Control>", _("Command-")); + replace_all (label, "<Alt>", _("Option-")); + replace_all (label, "<Shift>", _("Shift-")); + row[columns.binding] = label; +#else row[columns.binding] = (*k); +#endif } } } |