X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a7c58211dbcef64535223ca550cc8ad34f890cf8..61c213fe224da24ce33c9187263e75a17ca83a04:/samples/calendar/calendar.cpp diff --git a/samples/calendar/calendar.cpp b/samples/calendar/calendar.cpp index 9cc91601f7..af492450ce 100644 --- a/samples/calendar/calendar.cpp +++ b/samples/calendar/calendar.cpp @@ -17,11 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(__APPLE__) - #pragma implementation "calendar.cpp" - #pragma interface "calendar.cpp" -#endif - // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" @@ -595,7 +590,7 @@ MyDialog::MyDialog(wxWindow *parent, const wxDateTime& dt, int dtpStyle) wxStdDialogButtonSizer *sizerBtns = new wxStdDialogButtonSizer; sizerBtns->AddButton(new wxButton(this, wxID_OK)); sizerBtns->AddButton(new wxButton(this, wxID_CANCEL)); - sizerBtns->Finalise(); + sizerBtns->Realize(); wxSizer *sizerText = new wxBoxSizer(wxHORIZONTAL); sizerText->Add(new wxStaticText(this, wxID_ANY, _T("Date in ISO format: ")),