diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-05-24 12:40:43 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-05-24 12:40:43 +0100 |
| commit | ebd495da2fe5be8c07cf7fb52e8283bb7f4113c1 (patch) | |
| tree | 93c0f449f19258d5f3c2d7b6b205b54966c4c7a7 /src/lib/content.cc | |
| parent | 64a2f1bb6a7b972607fa363631ef7a47444e8217 (diff) | |
Allow drag of content; fix up some problems with timings.
Diffstat (limited to 'src/lib/content.cc')
| -rw-r--r-- | src/lib/content.cc | 16 |
1 files changed, 16 insertions, 0 deletions
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<const Film> 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); +} + + + |
