Use set_editable() rather than set_sensitive() to lock the clocks of locked markers, so that middle-click to locate to the marker still works even when locked (#4939).

git-svn-id: svn://localhost/ardour2/branches/3.0@12777 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2012-06-19 13:07:02 +00:00
parent 6b9d82be5c
commit b2ad7c087b
2 changed files with 8 additions and 8 deletions

View file

@ -322,7 +322,7 @@ LocationEditRow::set_location (Location *loc)
length_clock.hide();
}
set_clock_sensitivity ();
set_clock_editable_status ();
--i_am_the_modifier;
@ -632,7 +632,7 @@ LocationEditRow::location_changed (ARDOUR::Location*)
end_clock.set (location->end());
length_clock.set (location->length());
set_clock_sensitivity ();
set_clock_editable_status ();
i_am_the_modifier--;
@ -665,7 +665,7 @@ LocationEditRow::lock_changed (ARDOUR::Location*)
lock_check_button.set_active (location->locked());
set_clock_sensitivity ();
set_clock_editable_status ();
i_am_the_modifier--;
}
@ -691,11 +691,11 @@ LocationEditRow::focus_name()
}
void
LocationEditRow::set_clock_sensitivity ()
LocationEditRow::set_clock_editable_status ()
{
start_clock.set_sensitive (!location->locked());
end_clock.set_sensitive (!location->locked());
length_clock.set_sensitive (!location->locked());
start_clock.set_editable (!location->locked());
end_clock.set_editable (!location->locked());
length_clock.set_editable (!location->locked());
}
/*------------------------------------------------------------------------*/