X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fabout_dialog.cc;h=12f46812af04cc88efb7d85c3c508bbcca549ede;hb=4916ca4fa78402d8f589320b78750672ce0d8c93;hp=45f2f6c3796fa0218c11ecc03e6c1ba7b299e860;hpb=373f010a7f04add1f49169cbaa60cb7ae5f508d4;p=dcpomatic.git diff --git a/src/wx/about_dialog.cc b/src/wx/about_dialog.cc index 45f2f6c37..12f46812a 100644 --- a/src/wx/about_dialog.cc +++ b/src/wx/about_dialog.cc @@ -29,6 +29,7 @@ using std::vector; AboutDialog::AboutDialog (wxWindow* parent) : wxDialog (parent, wxID_ANY, _("About DCP-o-matic")) { + wxBoxSizer* overall_sizer = new wxBoxSizer (wxVERTICAL); wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL); wxFont title_font (*wxNORMAL_FONT); @@ -124,8 +125,15 @@ AboutDialog::AboutDialog (wxWindow* parent) add_section (_("Supported by"), supported_by); sizer->Add (_notebook, wxSizerFlags().Centre().Border(wxALL, 16).Expand()); + + overall_sizer->Add (sizer); + + wxSizer* buttons = CreateButtonSizer (wxOK); + if (buttons) { + overall_sizer->Add (buttons, 1, wxEXPAND | wxALL, 4); + } - SetSizerAndFit (sizer); + SetSizerAndFit (overall_sizer); } void