From a61f49ad4f11f136f934b13edb6e1f352e12d674 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 29 Jun 2024 16:46:06 -0600 Subject: [PATCH] show Bindings _name in DEBUG_TRACE output --- libs/gtkmm2ext/bindings.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/gtkmm2ext/bindings.cc b/libs/gtkmm2ext/bindings.cc index 6579bc02c1..65bba923f8 100644 --- a/libs/gtkmm2ext/bindings.cc +++ b/libs/gtkmm2ext/bindings.cc @@ -481,7 +481,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 (of %2)\n", unshifted, kbm.size())); + DEBUG_TRACE (DEBUG::Bindings, string_compose ("no binding for %1 (of %2) within %3\n", unshifted, kbm.size(), _name)); return false; } @@ -507,14 +507,14 @@ Bindings::activate (KeyboardKey kb, Operation op) if (action) { /* lets do it ... */ if (action->get_sensitive()) { - DEBUG_TRACE (DEBUG::Bindings, string_compose ("binding for %1: %2\n", unshifted, k->second.action_name)); + DEBUG_TRACE (DEBUG::Bindings, string_compose ("binding for %1: %2 within %3\n", unshifted, k->second.action_name, _name)); action->activate (); } else { - DEBUG_TRACE (DEBUG::Bindings, string_compose ("binding for %1: %2 - insensitive, skipped\n", unshifted, k->second.action_name)); + DEBUG_TRACE (DEBUG::Bindings, string_compose ("binding for %1: %2 - insensitive, skipped within %3\n", unshifted, k->second.action_name, _name)); return false; } } else { - DEBUG_TRACE (DEBUG::Bindings, string_compose ("binding for %1 is known but has no action\n", unshifted)); + DEBUG_TRACE (DEBUG::Bindings, string_compose ("binding for %1 is known but has no action within %2\n", unshifted, _name)); } /* return true even if the action could not be found */