From bd4193662963396539e6929caed0793978fca29b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 19 Oct 2013 19:41:44 +0100 Subject: Add an OK button to the About dialog. --- src/wx/about_dialog.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3