X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/04ca40fce80f2e19509907e80700277c1d4c8fa3..ad653fa23069c5d9378247084f03c9a718c3ad62:/src/generic/aboutdlgg.cpp diff --git a/src/generic/aboutdlgg.cpp b/src/generic/aboutdlgg.cpp index ba95a1cc74..b3eaa51751 100644 --- a/src/generic/aboutdlgg.cpp +++ b/src/generic/aboutdlgg.cpp @@ -223,7 +223,7 @@ bool wxGenericAboutDialog::Create(const wxAboutDialogInfo& info, wxWindow* paren #if !wxUSE_MODAL_ABOUT_DIALOG Connect(wxEVT_CLOSE_WINDOW, wxCloseEventHandler(wxGenericAboutDialog::OnCloseWindow)); - Connect(wxID_OK, wxEVT_COMMAND_BUTTON_CLICKED, + Connect(wxID_OK, wxEVT_BUTTON, wxCommandEventHandler(wxGenericAboutDialog::OnOK)); #endif // !wxUSE_MODAL_ABOUT_DIALOG @@ -249,6 +249,7 @@ void wxGenericAboutDialog::AddText(const wxString& text) AddControl(new wxStaticText(this, wxID_ANY, text)); } +#if wxUSE_COLLPANE void wxGenericAboutDialog::AddCollapsiblePane(const wxString& title, const wxString& text) { @@ -271,6 +272,7 @@ void wxGenericAboutDialog::AddCollapsiblePane(const wxString& title, // NB: all the wxCollapsiblePanes must be added with a null proportion value m_sizerText->Add(pane, wxSizerFlags(0).Expand().Border(wxBOTTOM)); } +#endif #if !wxUSE_MODAL_ABOUT_DIALOG @@ -307,7 +309,8 @@ void wxGenericAboutBox(const wxAboutDialogInfo& info, wxWindow* parent) // currently wxAboutBox is implemented natively only under these platforms, for // the others we provide a generic fallback here -#if !defined(__WXMSW__) && !defined(__WXMAC__) && !defined(__WXGTK26__) +#if !defined(__WXMSW__) && !defined(__WXMAC__) && \ + (!defined(__WXGTK20__) || defined(__WXUNIVERSAL__)) void wxAboutBox(const wxAboutDialogInfo& info, wxWindow* parent) {