fixed GTK styles handling:
1. don't modify the style unless something changed 2. use gtk_widget_modify_style instead of gtk_widget_set_style, the latter is not recommended by GTK+ developers git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -170,11 +170,10 @@ bool wxCheckBox::Enable( bool enable )
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void wxCheckBox::ApplyWidgetStyle()
|
||||
void wxCheckBox::DoApplyWidgetStyle(GtkRcStyle *style)
|
||||
{
|
||||
SetWidgetStyle();
|
||||
gtk_widget_set_style( m_widgetCheckbox, m_widgetStyle );
|
||||
gtk_widget_set_style( m_widgetLabel, m_widgetStyle );
|
||||
gtk_widget_modify_style(m_widgetCheckbox, style);
|
||||
gtk_widget_modify_style(m_widgetLabel, style);
|
||||
}
|
||||
|
||||
bool wxCheckBox::IsOwnGtkWindow( GdkWindow *window )
|
||||
|
Reference in New Issue
Block a user