X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/abe0903cd4a16c6d8f50a3263d601fc718038c6d..ad653fa23069c5d9378247084f03c9a718c3ad62:/src/generic/aboutdlgg.cpp?ds=sidebyside diff --git a/src/generic/aboutdlgg.cpp b/src/generic/aboutdlgg.cpp index 9a81ffa006..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 @@ -309,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) {