make timecode offset work

git-svn-id: svn://localhost/ardour2/branches/3.0@13418 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Robin Gareus 2012-11-09 17:27:30 +00:00
parent ca7e72db62
commit c27dde889c
4 changed files with 11 additions and 3 deletions

View file

@ -293,12 +293,19 @@ ClockOption::ClockOption (string const & i, string const & n, sigc::slot<framecn
_label.set_text (n + ":");
_label.set_alignment (0, 0.5);
_label.set_name (X_("OptionsLabel"));
_clock.ValueChanged.connect (sigc::mem_fun (*this, &ClockOption::save_clock_time));
}
void
ClockOption::set_state_from_config ()
{
_clock.set (_get ());
_clock.set (_get (), true);
}
void
ClockOption::save_clock_time ()
{
_set (_clock.current_time());
}
void