diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2019-01-13 12:00:31 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2019-01-13 12:00:31 -0600 |
commit | e5ae620c0b92064dc78662f5426d396761f08097 (patch) | |
tree | 8fe06a7c973ab71991530f9187ec4f8719c52a28 /libs/gtkmm2ext | |
parent | f974ff594a132fe651a6e620bab3e6f913d697a3 (diff) |
adjust debug/trace output for key bindings
Diffstat (limited to 'libs/gtkmm2ext')
-rw-r--r-- | libs/gtkmm2ext/bindings.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libs/gtkmm2ext/bindings.cc b/libs/gtkmm2ext/bindings.cc index 61c0c2dd0f..7f821d6e54 100644 --- a/libs/gtkmm2ext/bindings.cc +++ b/libs/gtkmm2ext/bindings.cc @@ -479,7 +479,7 @@ Bindings::activate (KeyboardKey kb, Operation op) if (k == kbm.end()) { /* no entry for this key in the state map */ - DEBUG_TRACE (DEBUG::Bindings, string_compose ("no binding for %1\n", unshifted)); + DEBUG_TRACE (DEBUG::Bindings, string_compose ("no binding for %1 (of %2)\n", unshifted, kbm.size())); return false; } @@ -495,8 +495,9 @@ Bindings::activate (KeyboardKey kb, Operation op) /* lets do it ... */ DEBUG_TRACE (DEBUG::Bindings, string_compose ("binding for %1: %2\n", unshifted, k->second.action_name)); action->activate (); + } else { + DEBUG_TRACE (DEBUG::Bindings, string_compose ("binding for %1 is known but has no action\n", unshifted)); } - /* return true even if the action could not be found */ return true; @@ -511,8 +512,6 @@ Bindings::associate () k->second.action = ActionManager::get_action (k->second.action_name, false); if (k->second.action) { push_to_gtk (k->first, k->second.action); - } else { - cerr << _name << " didn't find " << k->second.action_name << endl; } } |