Replaced Ok() occurrences with IsOk() throughout trunk.
Additionally renamed wxOSX' private wxNativePrinterDC::Ok() function to IsOk(). Didn't deprecate the various Ok() functions: given the amount of changes already introduced in 3.0 a trivial one like this seems more suitable for after 3.0. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1528,7 +1528,7 @@ wxColour wxWindowBase::GetBackgroundColour() const
|
||||
// wxWidgets versions where GetBackgroundColour() always returned
|
||||
// something -- so give them something even if it doesn't make sense
|
||||
// for this window (e.g. it has a themed background)
|
||||
if ( !colBg.Ok() )
|
||||
if ( !colBg.IsOk() )
|
||||
colBg = GetClassDefaultAttributes().colBg;
|
||||
|
||||
return colBg;
|
||||
@@ -1540,7 +1540,7 @@ wxColour wxWindowBase::GetBackgroundColour() const
|
||||
wxColour wxWindowBase::GetForegroundColour() const
|
||||
{
|
||||
// logic is the same as above
|
||||
if ( !m_hasFgCol && !m_foregroundColour.Ok() )
|
||||
if ( !m_hasFgCol && !m_foregroundColour.IsOk() )
|
||||
{
|
||||
wxColour colFg = GetDefaultAttributes().colFg;
|
||||
|
||||
@@ -1562,7 +1562,7 @@ bool wxWindowBase::SetBackgroundColour( const wxColour &colour )
|
||||
|
||||
m_inheritBgCol = m_hasBgCol;
|
||||
m_backgroundColour = colour;
|
||||
SetThemeEnabled( !m_hasBgCol && !m_foregroundColour.Ok() );
|
||||
SetThemeEnabled( !m_hasBgCol && !m_foregroundColour.IsOk() );
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1574,7 +1574,7 @@ bool wxWindowBase::SetForegroundColour( const wxColour &colour )
|
||||
m_hasFgCol = colour.IsOk();
|
||||
m_inheritFgCol = m_hasFgCol;
|
||||
m_foregroundColour = colour;
|
||||
SetThemeEnabled( !m_hasFgCol && !m_backgroundColour.Ok() );
|
||||
SetThemeEnabled( !m_hasFgCol && !m_backgroundColour.IsOk() );
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user