From ea17875c36a0f480069db5f5456d9a7eaf2b3fd7 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 13 Apr 2016 12:34:59 -0400 Subject: show window title in DEBUG::Accelerator debug trace --- gtk2_ardour/ardour_ui.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index fe9a5c3713..39bdc9280a 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -5400,7 +5400,7 @@ ARDOUR_UI::key_press_focus_accelerator_handler (Gtk::Window& window, GdkEventKey } } - DEBUG_TRACE (DEBUG::Accelerators, string_compose ("Win = %1 focus = %7 (%8) Key event: code = %2 state = %3 special handling ? %4 magic widget focus ? %5 focus widget %6 named %7 mods ? %8\n", + DEBUG_TRACE (DEBUG::Accelerators, string_compose ("Win = %1 [title = %9] focus = %7 (%8) Key event: code = %2 state = %3 special handling ? %4 magic widget focus ? %5 focus widget %6 named %7 mods ? %8\n", win, ev->keyval, show_gdk_event_state (ev->state), @@ -5408,7 +5408,8 @@ ARDOUR_UI::key_press_focus_accelerator_handler (Gtk::Window& window, GdkEventKey Keyboard::some_magic_widget_has_focus(), focus, (focus ? gtk_widget_get_name (focus) : "no focus widget"), - ((ev->state & mask) ? "yes" : "no"))); + ((ev->state & mask) ? "yes" : "no"), + window.get_title())); /* This exists to allow us to override the way GTK handles key events. The normal sequence is: -- cgit v1.2.3