]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/aboutdlgg.cpp
cleanup for 10.5
[wxWidgets.git] / src / generic / aboutdlgg.cpp
index 688750d0a9b0b134c160182ac8262a9bb5315dea..a1237317f77a8cd3c794f8277d1fe0631df12f2a 100644 (file)
@@ -151,10 +151,17 @@ bool wxGenericAboutDialog::Create(const wxAboutDialogInfo& info)
 
     wxSizer *sizerTop = new wxBoxSizer(wxVERTICAL);
     sizerTop->Add(sizerIconAndText, wxSizerFlags(1).Expand().Border());
-    sizerTop->Add(new wxButton(this, wxID_OK), wxSizerFlags().Right().Border());
+
+    wxSizer *sizerBtns = CreateButtonSizer(wxOK);
+    if ( sizerBtns )
+    {
+        sizerTop->Add(sizerBtns, wxSizerFlags().Expand().Border());
+    }
+
     SetSizerAndFit(sizerTop);
 
     CentreOnScreen();
+
     return true;
 }