X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bfc6fde4b1dd5bfd8ae22839ff9a69cf24eb9120..4e57b0d49515043e7b4083eb596ac5044ccb950e:/src/motif/dialog.cpp diff --git a/src/motif/dialog.cpp b/src/motif/dialog.cpp index 7dc7f7363f..d298056eb6 100644 --- a/src/motif/dialog.cpp +++ b/src/motif/dialog.cpp @@ -60,6 +60,8 @@ wxList wxModalDialogs; wxList wxModelessWindows; // Frames and modeless dialogs extern wxList wxPendingDelete; +extern wxHashTable *wxWidgetHashTable; + #define wxUSE_INVISIBLE_RESIZE 1 #if !USE_SHARED_LIBRARY @@ -139,7 +141,7 @@ bool wxDialog::Create(wxWindow *parent, wxWindowID id, XmStringFree(str); } - m_windowFont = wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT); + m_font = wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT); ChangeFont(FALSE); wxAddWindowToTable(dialogShell, this); @@ -342,6 +344,11 @@ void wxDialog::DoSetSize(int x, int y, int width, int height, int sizeFlags) XtVaSetValues((Widget) m_mainWidget, XmNresizePolicy, XmRESIZE_NONE, NULL); } +void wxDialog::DoSetClientSize(int width, int height) +{ + wxWindow::SetSize(-1, -1, width, height); +} + void wxDialog::SetTitle(const wxString& title) { m_dialogTitle = title; @@ -581,6 +588,11 @@ void wxDialog::OnCloseWindow(wxCloseEvent& event) closing.DeleteObject(this); } +void wxDialog::OnPaint(wxPaintEvent &WXUNUSED(event)) +{ + // added for compatiblity only +} + // Destroy the window (delayed, if a managed window) bool wxDialog::Destroy() {