diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-02-04 22:37:57 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-02-04 22:37:57 +0000 |
commit | 0170a7666a43b14b9d3c1b0b1b733ad14b997316 (patch) | |
tree | 3033706a907f89858318dd381933ae80bf336cbe /gtk2_ardour/keyeditor.cc | |
parent | 3ce593374063f0d9a7ad72503c09ed11a67278dc (diff) |
provide instructional hint for keyeditor; fix keybinding issues on OS X (needs current GTK patch); fix up packaging up OSX native to include VAMP plugins and put control surfaces in (mostly) the right places ; new (improved) arrow key bindings
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3007 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/keyeditor.cc')
-rw-r--r-- | gtk2_ardour/keyeditor.cc | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/gtk2_ardour/keyeditor.cc b/gtk2_ardour/keyeditor.cc index c914b6282b..cdac398a30 100644 --- a/gtk2_ardour/keyeditor.cc +++ b/gtk2_ardour/keyeditor.cc @@ -3,6 +3,7 @@ #include <ardour/profile.h> #include <gtkmm/stock.h> +#include <gtkmm/label.h> #include <gtkmm/accelkey.h> #include <gtkmm/accelmap.h> #include <gtkmm/uimanager.h> @@ -50,17 +51,23 @@ KeyEditor::KeyEditor () scroller.add (view); scroller.set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC); - unbind_box.pack_start (unbind_button, false, false); - - unbind_button.signal_clicked().connect (mem_fun (*this, &KeyEditor::unbind)); get_vbox()->set_spacing (6); get_vbox()->pack_start (scroller); if (!ARDOUR::Profile->get_sae()) { + + Label* hint = manage (new Label (_("Select an action, then press the key(s) to (re)set its shortcut"))); + hint->show (); + unbind_box.set_spacing (6); + unbind_box.pack_start (*hint, false, true); + unbind_box.pack_start (unbind_button, false, false); + unbind_button.signal_clicked().connect (mem_fun (*this, &KeyEditor::unbind)); + get_vbox()->pack_start (unbind_box, false, false); unbind_box.show (); unbind_button.show (); + } get_vbox()->set_border_width (12); @@ -248,9 +255,16 @@ KeyEditor::populate () #ifdef GTKOSX string label = (*k); - replace_all (label, "<Mod5>", _("Command-")); + + /* Gtk/Quartz maps: + NSAlternate/NSOption key to Mod1 + NSCommand key to Meta + */ + + replace_all (label, "<Meta>", _("Command-")); replace_all (label, "<Alt>", _("Option-")); replace_all (label, "<Shift>", _("Shift-")); + replace_all (label, "<Control>", _("Control-")); row[columns.binding] = label; #else row[columns.binding] = (*k); |