diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-12-08 01:11:35 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-12-08 01:11:35 +0000 |
| commit | 8b2a3f31b6b4238d8534549f495e7276174ddfba (patch) | |
| tree | b8c55a3ff05f488044d98871da46a0e4f52f306d /src/wx/swaroop_controls.cc | |
| parent | 9c1bb2e5ca7c80c4e26b1b2e41159aa171360a94 (diff) | |
Support buttons.
Diffstat (limited to 'src/wx/swaroop_controls.cc')
| -rw-r--r-- | src/wx/swaroop_controls.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wx/swaroop_controls.cc b/src/wx/swaroop_controls.cc index fafac55d6..2546412ef 100644 --- a/src/wx/swaroop_controls.cc +++ b/src/wx/swaroop_controls.cc @@ -22,6 +22,7 @@ #include "film_viewer.h" #include "wx_util.h" #include "content_view.h" +#include "dcpomatic_button.h" #include "lib/player_video.h" #include "lib/dcp_content.h" #include <wx/listctrl.h> @@ -35,9 +36,9 @@ using boost::optional; SwaroopControls::SwaroopControls (wxWindow* parent, shared_ptr<FilmViewer> viewer) : Controls (parent, viewer, false) - , _play_button (new wxButton(this, wxID_ANY, _("Play"))) - , _pause_button (new wxButton(this, wxID_ANY, _("Pause"))) - , _stop_button (new wxButton(this, wxID_ANY, _("Stop"))) + , _play_button (new Button(this, _("Play"))) + , _pause_button (new Button(this, _("Pause"))) + , _stop_button (new Button(this, _("Stop"))) , _current_disable_timeline (false) { _button_sizer->Add (_play_button, 0, wxEXPAND); @@ -156,7 +157,6 @@ SwaroopControls::image_changed (boost::weak_ptr<PlayerVideo> weak_pv) _current_content = c; - long int selected = _spl_view->GetNextItem (-1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED); if (_selected_playlist) { BOOST_FOREACH (SPLEntry i, _playlists[*_selected_playlist].get()) { if (i.content == c) { |
