diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-31 23:47:14 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-31 23:47:14 +0100 |
| commit | e0255a64d22440d718e5512f34a4f21f0d37a21b (patch) | |
| tree | 61927018d28794c7c32c238bc37259bfddb2f01c /src/wx/timeline.cc | |
| parent | 8fedaaa75c4586a4cc7ffb393bd71d1fdb091dc8 (diff) | |
Use enum class for Film::Property.
Diffstat (limited to 'src/wx/timeline.cc')
| -rw-r--r-- | src/wx/timeline.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wx/timeline.cc b/src/wx/timeline.cc index 89f223956..60200d8bb 100644 --- a/src/wx/timeline.cc +++ b/src/wx/timeline.cc @@ -112,7 +112,7 @@ Timeline::Timeline (wxWindow* parent, ContentPanel* cp, shared_ptr<Film> film, w _main_canvas->Bind (wxEVT_SCROLLWIN_PAGEDOWN, boost::bind (&Timeline::scrolled, this, _1)); _main_canvas->Bind (wxEVT_SCROLLWIN_THUMBTRACK, boost::bind (&Timeline::scrolled, this, _1)); - film_change (ChangeType::DONE, Film::CONTENT); + film_change (ChangeType::DONE, Film::Property::CONTENT); SetMinSize (wxSize (640, 4 * pixels_per_track() + 96)); @@ -231,10 +231,10 @@ Timeline::film_change (ChangeType type, Film::Property p) return; } - if (p == Film::CONTENT || p == Film::REEL_TYPE || p == Film::REEL_LENGTH) { + if (p == Film::Property::CONTENT || p == Film::Property::REEL_TYPE || p == Film::Property::REEL_LENGTH) { ensure_ui_thread (); recreate_views (); - } else if (p == Film::CONTENT_ORDER) { + } else if (p == Film::Property::CONTENT_ORDER) { Refresh (); } } |
