X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/69d90995bb90845723261e29b3895f3004887881..e1983ab58804a0e32ab2d832ded0349af1cc0476:/src/common/wincmn.cpp diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 1f80f28ee9..5f892e172d 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -121,8 +121,8 @@ wxWindowBase::wxWindowBase() m_maxWidth = m_maxHeight = -1; - // window is created enabled but it's not visible yet - m_isShown = false; + // window are created enabled and visible by default + m_isShown = m_isEnabled = true; // the default event handler is just this window @@ -192,7 +192,7 @@ wxWindowBase::wxWindowBase() m_maxVirtualWidth = m_maxVirtualHeight = -1; - m_windowVariant = wxWINDOW_VARIANT_DEFAULT ; + m_windowVariant = wxWINDOW_VARIANT_NORMAL ; // Whether we're using the current theme for this window (wxGTK only for now) m_themeEnabled = false; @@ -651,8 +651,6 @@ void wxWindowBase::DoSetWindowVariant( wxWindowVariant variant ) case wxWINDOW_VARIANT_LARGE : font.SetPointSize( size * 5 / 4 ) ; break ; - case wxWINDOW_VARIANT_DEFAULT : - break ; default: wxFAIL_MSG(_T("unexpected window variant")); break ;