Note that newer libsub version is required.
[dcpomatic.git] / src / wx / film_editor.cc
index 70c4a7b24b3e3c5d14b60dab68d28e406e6ae5ba..9f54db58e027e9b651f830d098d41045c0e91775 100644 (file)
@@ -55,7 +55,7 @@ FilmEditor::FilmEditor(wxWindow* parent, FilmViewer& viewer)
        auto s = new wxBoxSizer (wxVERTICAL);
 
        auto notebook = new wxNotebook(this, wxID_ANY);
-       s->Add(notebook, 1);
+       s->Add(notebook, 1, wxEXPAND);
 
        _content_panel = new ContentPanel(notebook, _film, viewer);
        notebook->AddPage(_content_panel->window(), _("Content"), true);
@@ -76,7 +76,7 @@ FilmEditor::FilmEditor(wxWindow* parent, FilmViewer& viewer)
  *  @param p Property of the Film that has changed.
  */
 void
-FilmEditor::film_change (ChangeType type, Film::Property p)
+FilmEditor::film_change(ChangeType type, FilmProperty p)
 {
        if (type != ChangeType::DONE) {
                return;
@@ -91,7 +91,7 @@ FilmEditor::film_change (ChangeType type, Film::Property p)
        _content_panel->film_changed (p);
        _dcp_panel->film_changed (p);
 
-       if (p == Film::Property::CONTENT && !_film->content().empty()) {
+       if (p == FilmProperty::CONTENT && !_film->content().empty()) {
                /* Select newly-added content */
                _content_panel->set_selection (_film->content().back ());
        }