summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-03-11 19:29:43 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-03-11 19:29:43 +0000
commit3db3aaea78ce1fe4ccc2bf2c5efd40738efa2db7 (patch)
treeaf28d96bddafd07a379c405b6b9b39fed46620db /gtk2_ardour
parent76186b105d82f7e4bc5693739c65aa71ccaff709 (diff)
code to enable shortcut/binding debugging
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4796 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/keyboard.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/gtk2_ardour/keyboard.cc b/gtk2_ardour/keyboard.cc
index 24ca17ff42..dd15387350 100644
--- a/gtk2_ardour/keyboard.cc
+++ b/gtk2_ardour/keyboard.cc
@@ -648,7 +648,23 @@ Keyboard::load_keybindings (string path)
release_keys.clear ();
+ bool show_bindings = (getenv ("ARDOUR_SHOW_BINDINGS") != 0);
+
for (n = names.begin(), b = bindings.begin(), g = groups.begin(); n != names.end(); ++n, ++b, ++g) {
+
+ if (show_bindings) {
+
+ cerr << "Action: " << (*n) << " Group: " << (*g) << " binding = ";
+
+ if ((*b).get_key() != GDK_VoidSymbol) {
+ cerr << (*b).get_key() << " w/mod = " << hex << (*b).get_mod() << dec << " = " << (*b).get_abbrev();
+ } else {
+ cerr << "unbound";
+ }
+
+ cerr << endl;
+ }
+
if ((*b).get_mod() & Gdk::RELEASE_MASK) {
release_keys.insert (pair<AccelKey,two_strings> (*b, two_strings (*g, *n)));
}