8214252: Expanded & Collapsed nodes of a JTree look the same on GTK3

Reviewed-by: serb, psadhukhan
This commit is contained in:
Pankaj Bansal 2019-01-10 16:38:02 +05:30
parent c9ae7d367f
commit b107fdbd58

View File

@ -1612,7 +1612,11 @@ static void gtk3_paint_expander(WidgetType widget_type, GtkStateType state_type,
GtkStateFlags flags = get_gtk_flags(state_type);
if (expander_style == GTK_EXPANDER_EXPANDED) {
flags |= GTK_STATE_FLAG_ACTIVE;
if (gtk3_version_3_14) {
flags |= GTK_STATE_FLAG_CHECKED;
} else {
flags |= GTK_STATE_FLAG_ACTIVE;
}
}
fp_gtk_style_context_set_state(context, flags);