diff options
Diffstat (limited to 'src/wx/control_film_viewer.cc')
| -rw-r--r-- | src/wx/control_film_viewer.cc | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/wx/control_film_viewer.cc b/src/wx/control_film_viewer.cc index 69b2b5b5c..739b02765 100644 --- a/src/wx/control_film_viewer.cc +++ b/src/wx/control_film_viewer.cc @@ -96,6 +96,8 @@ ControlFilmViewer::ControlFilmViewer (wxWindow* parent, bool outline_content, bo _viewer->ImageChanged.connect (boost::bind(&ControlFilmViewer::image_changed, this, _1)); _viewer->PositionChanged.connect (boost::bind(&ControlFilmViewer::position_changed, this)); + _viewer->Started.connect (boost::bind(&ControlFilmViewer::started, this)); + _viewer->Stopped.connect (boost::bind(&ControlFilmViewer::stopped, this)); set_film (shared_ptr<Film> ()); @@ -107,6 +109,18 @@ ControlFilmViewer::ControlFilmViewer (wxWindow* parent, bool outline_content, bo } void +ControlFilmViewer::started () +{ + _play_button->SetValue (true); +} + +void +ControlFilmViewer::stopped () +{ + _play_button->SetValue (false); +} + +void ControlFilmViewer::position_changed () { update_position_label (); @@ -380,14 +394,12 @@ ControlFilmViewer::show_closed_captions () void ControlFilmViewer::start () { - _play_button->SetValue (true); _viewer->start (); } bool ControlFilmViewer::stop () { - _play_button->SetValue (false); return _viewer->stop (); } |
