summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-09-29 11:59:00 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-09-29 12:01:49 -0400
commit5472498a504844229c2e492c3aed658d5f7a3d00 (patch)
treec5890f39d4ec758f162db401189397d300687a6a
parente67303b0e424717032d3698bcca175fda7f3254a (diff)
enhance -D bindings output
-rw-r--r--libs/gtkmm2ext/bindings.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/gtkmm2ext/bindings.cc b/libs/gtkmm2ext/bindings.cc
index e25ed20f21..9100ddabc6 100644
--- a/libs/gtkmm2ext/bindings.cc
+++ b/libs/gtkmm2ext/bindings.cc
@@ -649,6 +649,9 @@ Bindings::add (KeyboardKey kb, Operation op, string const& action_name, XMLPrope
(void) kbm.insert (new_pair).first;
}
+ DEBUG_TRACE (DEBUG::Bindings, string_compose ("add binding between %1 and %2, group [%3]\n",
+ kb, action_name, (group ? group->value() : string())));
+
if (can_save) {
Keyboard::keybindings_changed ();
}
@@ -1325,5 +1328,6 @@ ActionMap::get_all_actions (std::vector<std::string>& paths,
std::ostream& operator<<(std::ostream& out, Gtkmm2ext::KeyboardKey const & k) {
char const *gdk_name = gdk_keyval_name (k.key());
- return out << "Key " << k.key() << " (" << (gdk_name ? gdk_name : "no-key") << ") state " << hex << k.state() << dec;
+ return out << "Key " << k.key() << " (" << (gdk_name ? gdk_name : "no-key") << ") state "
+ << hex << k.state() << dec << ' ' << show_gdk_event_state (k.state());
}