summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-10-19 19:41:44 +0100
committerCarl Hetherington <cth@carlh.net>2013-10-19 19:41:44 +0100
commitbd4193662963396539e6929caed0793978fca29b (patch)
tree89049b345b8e173a2d6bf6e7ec059348216ddeae
parent162901a5cb0b5be55e2d64ecbf98ed92265dc234 (diff)
Add an OK button to the About dialog.
-rw-r--r--src/wx/about_dialog.cc10
1 files changed, 9 insertions, 1 deletions
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