std::shared_ptr
[dcpomatic.git] / src / wx / standard_controls.cc
index 5df89f8fecd05093738c089239c4ab03dc971c52..c78844ca1bc3ddd14e1d463519b88d440ece9d42 100644 (file)
 #include <wx/wx.h>
 #include <wx/tglbtn.h>
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 StandardControls::StandardControls (wxWindow* parent, shared_ptr<FilmViewer> viewer, bool editor_controls)
        : Controls (parent, viewer, editor_controls)
        , _play_button (new wxToggleButton(this, wxID_ANY, _("Play")))
 {
-       _button_sizer->Add (_play_button, 0, wxEXPAND);
+       _button_sizer->Add (_play_button, 0, wxALL | wxALIGN_CENTER_VERTICAL, 2);
        _play_button->Bind (wxEVT_TOGGLEBUTTON, boost::bind(&StandardControls::play_clicked, this));
 }