From d9ea011f4d7f66c9728593c5ee10ce2c34964545 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 27 Jul 1999 14:09:25 +0000 Subject: [PATCH] wxGTK compilation fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/defs.h | 5 ++++- include/wx/gtk/control.h | 2 +- include/wx/gtk1/control.h | 2 +- src/gtk/control.cpp | 2 +- src/gtk/window.cpp | 2 +- src/gtk1/control.cpp | 2 +- src/gtk1/window.cpp | 2 +- 7 files changed, 10 insertions(+), 7 deletions(-) diff --git a/include/wx/defs.h b/include/wx/defs.h index f2449d0911..38d1da52e2 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -583,9 +583,12 @@ enum #define wxWANTS_CHARS 0x00040000 // Make window retained (mostly Motif, I think) -#define wxRETAINED 0x0002000 +#define wxRETAINED 0x00020000 #define wxBACKINGSTORE wxRETAINED +// don't invalidate the whole window (resulting in a PAINT event) when the +// window is resized (currently, makes sense for wxMSW only) +#define wxNO_FULLREPAINT_ON_RESIZE 0x00010000 /* * wxFrame/wxDialog style flags */ diff --git a/include/wx/gtk/control.h b/include/wx/gtk/control.h index 45d0ea230e..f18f219d8c 100644 --- a/include/wx/gtk/control.h +++ b/include/wx/gtk/control.h @@ -29,7 +29,7 @@ class wxControl; // wxControl //----------------------------------------------------------------------------- -class wxControl : public wxControlBase +class wxControl : public wxWindow { DECLARE_DYNAMIC_CLASS(wxControl) diff --git a/include/wx/gtk1/control.h b/include/wx/gtk1/control.h index 45d0ea230e..f18f219d8c 100644 --- a/include/wx/gtk1/control.h +++ b/include/wx/gtk1/control.h @@ -29,7 +29,7 @@ class wxControl; // wxControl //----------------------------------------------------------------------------- -class wxControl : public wxControlBase +class wxControl : public wxWindow { DECLARE_DYNAMIC_CLASS(wxControl) diff --git a/src/gtk/control.cpp b/src/gtk/control.cpp index e767eac88f..578b12cb9f 100644 --- a/src/gtk/control.cpp +++ b/src/gtk/control.cpp @@ -38,7 +38,7 @@ wxControl::wxControl( wxWindow *parent, void wxControl::SetLabel( const wxString &label ) { - m_label = _T(""); + m_label.Empty(); for ( const wxChar *pc = label; *pc != _T('\0'); pc++ ) { if ( *pc == _T('&') ) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 7e01371333..a2d7b7536f 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -2011,7 +2011,7 @@ void wxWindow::PreCreation( wxWindow *parent, { wxASSERT_MSG( !m_needParent || parent, _T("Need complete parent.") ); - if ( !CreateBase(parent, id, pos, size, style, name) ) + if ( !CreateBase(parent, id, pos, size, style, wxDefaultValidator, name) ) { wxFAIL_MSG(_T("window creation failed")); } diff --git a/src/gtk1/control.cpp b/src/gtk1/control.cpp index e767eac88f..578b12cb9f 100644 --- a/src/gtk1/control.cpp +++ b/src/gtk1/control.cpp @@ -38,7 +38,7 @@ wxControl::wxControl( wxWindow *parent, void wxControl::SetLabel( const wxString &label ) { - m_label = _T(""); + m_label.Empty(); for ( const wxChar *pc = label; *pc != _T('\0'); pc++ ) { if ( *pc == _T('&') ) diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index 7e01371333..a2d7b7536f 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -2011,7 +2011,7 @@ void wxWindow::PreCreation( wxWindow *parent, { wxASSERT_MSG( !m_needParent || parent, _T("Need complete parent.") ); - if ( !CreateBase(parent, id, pos, size, style, name) ) + if ( !CreateBase(parent, id, pos, size, style, wxDefaultValidator, name) ) { wxFAIL_MSG(_T("window creation failed")); } -- 2.45.2