diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-01-16 00:04:12 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-01-16 00:04:12 +0000 |
commit | d475fd0fca946358facff0ce24a900dc59a1bc9c (patch) | |
tree | 90f9cc5db8048d1cb1fc230b388aabd567c0a713 /gtk2_ardour | |
parent | 03e1970a87d83d0e6251e4760acc9ee08b249a44 (diff) |
minor tweaks to gtkapplication quartz code and turn off keyboard event debugging
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6503 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/utils.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/utils.cc b/gtk2_ardour/utils.cc index 22b6cfa9d5..a6b3f4f16c 100644 --- a/gtk2_ardour/utils.cc +++ b/gtk2_ardour/utils.cc @@ -418,7 +418,7 @@ key_press_focus_accelerator_handler (Gtk::Window& window, GdkEventKey* ev) bool special_handling_of_unmodified_accelerators = false; bool allow_activating = true; -#define DEBUG_ACCELERATOR_HANDLING +#undef DEBUG_ACCELERATOR_HANDLING #ifdef DEBUG_ACCELERATOR_HANDLING //bool debug = (getenv ("ARDOUR_DEBUG_ACCELERATOR_HANDLING") != 0); bool debug=true; @@ -501,7 +501,7 @@ key_press_focus_accelerator_handler (Gtk::Window& window, GdkEventKey* ev) if (possibly_translate_keyval_to_make_legal_accelerator (fakekey)) { #ifdef DEBUG_ACCELERATOR_HANDLING if (debug) { - cerr << "\tactivate without special handling of unmodified accels\n"; + cerr << "\tactivate (was " << ev->keyval << " now " << fakekey << ") without special handling of unmodified accels\n"; } #endif if (allow_activating && gtk_accel_groups_activate(G_OBJECT(win), fakekey, GdkModifierType(ev->state))) { @@ -533,7 +533,7 @@ key_press_focus_accelerator_handler (Gtk::Window& window, GdkEventKey* ev) if (gtk_window_activate_key (win, ev)) { #ifdef DEBUG_ACCELERATOR_HANDLING if (debug) { - cerr << "\tactivation handled key\n"; + cerr << "\tactivation handled key " << ev->keyval << endl; } #endif |