More c++ tidying.
[dcpomatic.git] / src / wx / controls.cc
index 86329efb39425f8f4ff40b88cf52751df7f5d4f5..5364e16148333364ecbc5851b2a16cc1fc165782 100644 (file)
@@ -49,9 +49,9 @@ using std::cout;
 using std::make_pair;
 using std::exception;
 using boost::optional;
-using boost::shared_ptr;
-using boost::weak_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::weak_ptr;
+using std::dynamic_pointer_cast;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
@@ -97,10 +97,10 @@ Controls::Controls (wxWindow* parent, shared_ptr<FilmViewer> viewer, bool editor
        time_sizer->Add (_frame_number, 0, wxEXPAND);
        time_sizer->Add (_timecode, 0, wxEXPAND);
 
-       h_sizer->Add (_rewind_button, 0, wxALL, 2);
+       h_sizer->Add (_rewind_button, 0, wxALL | wxALIGN_CENTER_VERTICAL, 2);
        h_sizer->Add (time_sizer, 0, wxEXPAND);
-       h_sizer->Add (_back_button, 0, wxALL, 2);
-       h_sizer->Add (_forward_button, 0, wxALL, 2);
+       h_sizer->Add (_back_button, 0, wxALL | wxALIGN_CENTER_VERTICAL, 2);
+       h_sizer->Add (_forward_button, 0, wxALL | wxALIGN_CENTER_VERTICAL, 2);
 
        _button_sizer = new wxBoxSizer (wxHORIZONTAL);
        h_sizer->Add (_button_sizer, 0, wxEXPAND);