X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2d120f8391920145647ec10e84629bc21fa9f1bb..82540ef2327daaf6ae78189139a669afc9edf9d9:/src/motif/dialog.cpp?ds=sidebyside diff --git a/src/motif/dialog.cpp b/src/motif/dialog.cpp index 95be844612..16fc52abd5 100644 --- a/src/motif/dialog.cpp +++ b/src/motif/dialog.cpp @@ -611,6 +611,7 @@ void wxDialog::OnSysColourChanged(wxSysColourChangedEvent& WXUNUSED(event)) void wxDialog::Fit() { + wxWindow::Fit(); } // Handle a close event from the window manager @@ -686,7 +687,7 @@ static void wxDialogBoxEventHandler (Widget wid, // if this returns TRUE, set continueToDispatch to False // (don't continue processing). // Otherwise set it to True and call OnChar. - wxKeyEvent keyEvent(wxEVENT_TYPE_CHAR); + wxKeyEvent keyEvent(wxEVT_CHAR); if (wxTranslateKeyEvent(keyEvent, dialog, wid, event)) { keyEvent.SetEventObject(dialog);