Tidy up sized emissions from VideoView.
[dcpomatic.git] / src / wx / film_viewer.cc
index 4066710e7e90936c5dbd86ca9d74293c4fc11c64..c83db56dec89279b75aab65e0ef24ea51df958e4 100644 (file)
@@ -106,9 +106,8 @@ FilmViewer::FilmViewer (wxWindow* p)
                break;
        }
 
-       /* XXX: maybe this should be proxied through the VideoView */
-       _video_view->get()->Bind (wxEVT_SIZE, boost::bind (&FilmViewer::video_view_sized, this));
-       _timer.Bind  (wxEVT_TIMER, boost::bind (&FilmViewer::timer, this));
+       _video_view->Sized.connect (boost::bind(&FilmViewer::video_view_sized, this));
+       _timer.Bind (wxEVT_TIMER, boost::bind(&FilmViewer::timer, this));
 
        set_film (shared_ptr<Film> ());