]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/dialog.cpp
Doc mods, sash window bug
[wxWidgets.git] / src / motif / dialog.cpp
index 95be8446122b760a373d94be2cdaad721161ee04..16fc52abd55e805f8a6300d4c98534389c820d15 100644 (file)
@@ -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);