From ebd495da2fe5be8c07cf7fb52e8283bb7f4113c1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 24 May 2013 12:40:43 +0100 Subject: Allow drag of content; fix up some problems with timings. --- src/lib/content.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/lib/content.cc') diff --git a/src/lib/content.cc b/src/lib/content.cc index 395359fa7..c12a8a166 100644 --- a/src/lib/content.cc +++ b/src/lib/content.cc @@ -29,6 +29,8 @@ using std::string; using boost::shared_ptr; using boost::lexical_cast; +int const ContentProperty::START = 400; + Content::Content (shared_ptr f, Time s) : _film (f) , _start (s) @@ -84,3 +86,17 @@ Content::signal_changed (int p) { Changed (shared_from_this (), p); } + +void +Content::set_start (Time s) +{ + { + boost::mutex::scoped_lock lm (_mutex); + _start = s; + } + + signal_changed (ContentProperty::START); +} + + + -- cgit v1.2.3