summaryrefslogtreecommitdiff
path: root/src/lib/content.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/content.cc')
-rw-r--r--src/lib/content.cc16
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);
+}
+
+
+