diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2019-03-20 11:15:47 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2019-03-20 11:15:47 -0700 |
commit | 51df70b40541115e514cf95a8e41f42baa8c6afc (patch) | |
tree | 26832fd1fc56da1d9a9106facc0db27e4773d3c5 /gtk2_ardour/editor_summary.cc | |
parent | 94d859e30df6d11e808382da4ca1b02e93eb2912 (diff) |
ActionManager::get_all_actions() no longer includes <Actions> in the paths it returns, part 3 (GUI)
Diffstat (limited to 'gtk2_ardour/editor_summary.cc')
-rw-r--r-- | gtk2_ardour/editor_summary.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_summary.cc b/gtk2_ardour/editor_summary.cc index ac86e884c2..872abaa17b 100644 --- a/gtk2_ardour/editor_summary.cc +++ b/gtk2_ardour/editor_summary.cc @@ -424,6 +424,9 @@ EditorSummary::on_key_press_event (GdkEventKey* key) { gint x, y; GtkAccelKey set_playhead_accel; + + /* XXXX this is really ugly and should be using our own action maps and bindings */ + if (gtk_accel_map_lookup_entry ("<Actions>/Editor/set-playhead", &set_playhead_accel)) { if (key->keyval == set_playhead_accel.accel_key && (int) key->state == set_playhead_accel.accel_mods) { if (_session) { @@ -442,6 +445,9 @@ EditorSummary::on_key_release_event (GdkEventKey* key) { GtkAccelKey set_playhead_accel; + + /* XXXX this is really ugly and should be using our own action maps and bindings */ + if (gtk_accel_map_lookup_entry ("<Actions>/Editor/set-playhead", &set_playhead_accel)) { if (key->keyval == set_playhead_accel.accel_key && (int) key->state == set_playhead_accel.accel_mods) { return true; |