diff options
author | Carl Hetherington <carl@carlh.net> | 2012-06-17 16:57:21 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-06-17 16:57:21 +0000 |
commit | 95377c141c404c959797028b737ca747c1bccadb (patch) | |
tree | c3cd4d4e6f24071ba1edfd0ad0863814bd0f370e /gtk2_ardour/editor.cc | |
parent | add52f1c0ef787a580c44d719bc6e4c9c5ae09a4 (diff) |
Hacky fix for track height step losing 'grip' on the
track being resized (#4503).
git-svn-id: svn://localhost/ardour2/branches/3.0@12747 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r-- | gtk2_ardour/editor.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 939c05b1e8..e3e00cf340 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -282,6 +282,7 @@ Editor::Editor () , _region_selection_change_updates_region_list (true) , _following_mixer_selection (false) , _control_point_toggled_on_press (false) + , _stepping_axis_view (0) { constructed = false; @@ -696,6 +697,8 @@ Editor::Editor () signal_configure_event().connect (sigc::mem_fun (*ARDOUR_UI::instance(), &ARDOUR_UI::configure_handler)); signal_delete_event().connect (sigc::mem_fun (*ARDOUR_UI::instance(), &ARDOUR_UI::exit_on_main_window_close)); + Gtkmm2ext::Keyboard::the_keyboard().ShiftReleased.connect (sigc::mem_fun (*this, &Editor::shift_key_released)); + /* allow external control surfaces/protocols to do various things */ ControlProtocol::ZoomToSession.connect (*this, invalidator (*this), boost::bind (&Editor::temporal_zoom_session, this), gui_context()); @@ -5473,3 +5476,8 @@ Editor::popup_control_point_context_menu (ArdourCanvas::Item* item, GdkEvent* ev _control_point_context_menu.popup (event->button.button, event->button.time); } +void +Editor::shift_key_released () +{ + _stepping_axis_view = 0; +} |