summaryrefslogtreecommitdiff
path: root/gtk2_ardour/location_ui.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-06-19 13:07:02 +0000
committerCarl Hetherington <carl@carlh.net>2012-06-19 13:07:02 +0000
commitb2ad7c087b35c1ca58ce95be82c3100d23adb545 (patch)
treeca311c2621bfb251d773656495f67a40f7f65366 /gtk2_ardour/location_ui.cc
parent6b9d82be5c210061dca338297d7cdd30420a1638 (diff)
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
Diffstat (limited to 'gtk2_ardour/location_ui.cc')
-rw-r--r--gtk2_ardour/location_ui.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/gtk2_ardour/location_ui.cc b/gtk2_ardour/location_ui.cc
index ea6a3f544c..9f027ea8bf 100644
--- a/gtk2_ardour/location_ui.cc
+++ b/gtk2_ardour/location_ui.cc
@@ -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());
}
/*------------------------------------------------------------------------*/