Accessor for ClosedCaptionsDialog.
[dcpomatic.git] / src / wx / batch_job_view.cc
index 853dac8f4adf1912a6d5f819aee0645cf4937737..038e8b22881a1c7ceeb11bdc732b82978f70a553 100644 (file)
@@ -19,6 +19,7 @@
 */
 
 #include "batch_job_view.h"
+#include "dcpomatic_button.h"
 #include "lib/job_manager.h"
 #include <wx/sizer.h>
 #include <wx/button.h>
@@ -41,10 +42,10 @@ BatchJobView::insert_position () const
 void
 BatchJobView::finish_setup (wxWindow* parent, wxSizer* sizer)
 {
-       _higher_priority = new wxButton (parent, wxID_ANY, _("Higher priority"));
+       _higher_priority = new Button (parent, _("Higher priority"));
        _higher_priority->Bind (wxEVT_BUTTON, boost::bind (&BatchJobView::higher_priority_clicked, this));
        sizer->Add (_higher_priority, 1, wxALIGN_CENTER_VERTICAL);
-       _lower_priority = new wxButton (parent, wxID_ANY, _("Lower priority"));
+       _lower_priority = new Button (parent, _("Lower priority"));
        _lower_priority->Bind (wxEVT_BUTTON, boost::bind (&BatchJobView::lower_priority_clicked, this));
        sizer->Add (_lower_priority, 1, wxALIGN_CENTER_VERTICAL);
 }