git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26544
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
GtkStyle *style = GetWidgetStyle();
- if (m_font != wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT ))
+ if ( m_hasFont )
{
#ifdef __WXGTK20__
pango_font_description_free( style->font_desc );
#endif
}
- if (m_foregroundColour.Ok())
+ if ( m_hasFgCol )
{
m_foregroundColour.CalcPixel( gtk_widget_get_colormap( m_widget ) );
if (m_foregroundColour != wxSystemSettings::GetColour(wxSYS_COLOUR_BTNTEXT))
}
}
- if (m_backgroundColour.Ok())
+ if ( m_hasBgCol )
{
m_backgroundColour.CalcPixel( gtk_widget_get_colormap( m_widget ) );
if (m_backgroundColour != wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE))
GtkStyle *style = GetWidgetStyle();
- if (m_font != wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT ))
+ if ( m_hasFont )
{
#ifdef __WXGTK20__
pango_font_description_free( style->font_desc );
#endif
}
- if (m_foregroundColour.Ok())
+ if ( m_hasFgCol )
{
m_foregroundColour.CalcPixel( gtk_widget_get_colormap( m_widget ) );
if (m_foregroundColour != wxSystemSettings::GetColour(wxSYS_COLOUR_BTNTEXT))
}
}
- if (m_backgroundColour.Ok())
+ if ( m_hasBgCol )
{
m_backgroundColour.CalcPixel( gtk_widget_get_colormap( m_widget ) );
if (m_backgroundColour != wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE))