X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c2c59b22862f9537c18f4d4c16b68056d86493f9..27f35b6674b796e61986681261ec7a96bef93502:/src/generic/fontdlgg.cpp diff --git a/src/generic/fontdlgg.cpp b/src/generic/fontdlgg.cpp index 6ca1b71e4c..0de608cd45 100644 --- a/src/generic/fontdlgg.cpp +++ b/src/generic/fontdlgg.cpp @@ -167,6 +167,9 @@ void wxGenericFontDialog::Init() { m_useEvents = FALSE; m_previewer = NULL; +#ifdef __WXMAC__ + Create( m_parent ) ; +#endif } wxGenericFontDialog::~wxGenericFontDialog() @@ -180,6 +183,14 @@ void wxGenericFontDialog::OnCloseWindow(wxCloseEvent& WXUNUSED(event)) bool wxGenericFontDialog::DoCreate(wxWindow *parent) { +#ifdef __WXMAC__ + if ( !wxDialog::Create( parent , -1 , _T("Choose Font") , wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE, + _T("fontdialog") ) ) + { + wxFAIL_MSG( wxT("wxFontDialog creation failed") ); + return FALSE; + } +#endif InitializeFont(); CreateWidgets(); @@ -188,7 +199,7 @@ bool wxGenericFontDialog::DoCreate(wxWindow *parent) int wxGenericFontDialog::ShowModal() { - int ret = wxDialog::ShowModal(); + int ret = wxDialog::ShowModal(); if (ret != wxID_CANCEL) {