slightly increased debugging output for -D accelerators
authorPaul Davis <paul@linuxaudiosystems.com>
Sun, 2 Nov 2014 13:54:12 +0000 (08:54 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Sun, 2 Nov 2014 13:57:58 +0000 (08:57 -0500)
gtk2_ardour/utils.cc

index 8011f6abfd8766a67649fef3de32afdcb9bf07eb..171fc631d551e0ea2bbce012ca86de2498693c8b 100644 (file)
@@ -483,14 +483,15 @@ ARDOUR_UI_UTILS::key_press_focus_accelerator_handler (Gtk::Window& window, GdkEv
 #endif
 
 
-        DEBUG_TRACE (DEBUG::Accelerators, string_compose ("Win = %1 focus = %7 Key event: code = %2  state = %3 special handling ? %4 magic widget focus ? %5 allow_activation ? %6\n",
+        DEBUG_TRACE (DEBUG::Accelerators, string_compose ("Win = %1 focus = %7 (%8) Key event: code = %2  state = %3 special handling ? %4 magic widget focus ? %5 allow_activation ? %6\n",
                                                           win,
                                                           ev->keyval,
                                                           ev->state,
                                                           special_handling_of_unmodified_accelerators,
                                                           Keyboard::some_magic_widget_has_focus(),
                                                           allow_activating,
-                                                         focus));
+                                                         focus,
+                                                          (focus ? gtk_widget_get_name (focus) : "no focus widget")));
 
        /* This exists to allow us to override the way GTK handles
           key events. The normal sequence is: