Get(Class)DefaultAttributes() for wxGTK controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -112,5 +112,22 @@ void wxGauge::ApplyWidgetStyle()
|
||||
gtk_widget_set_style( m_widget, m_widgetStyle );
|
||||
}
|
||||
|
||||
wxVisualAttributes wxGauge::GetDefaultAttributes() const
|
||||
{
|
||||
// Visible gauge colours use a different colour state
|
||||
return GetDefaultAttributesFromGTKWidget(m_widget,
|
||||
UseGTKStyleBase(),
|
||||
GTK_STATE_ACTIVE);
|
||||
|
||||
}
|
||||
|
||||
// static
|
||||
wxVisualAttributes
|
||||
wxGauge::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
|
||||
{
|
||||
return GetDefaultAttributesFromGTKWidget(gtk_progress_bar_new,
|
||||
false, GTK_STATE_ACTIVE);
|
||||
}
|
||||
|
||||
#endif // wxUSE_GAUGE
|
||||
|
||||
|
Reference in New Issue
Block a user