widget: Unset PRELIGHT and ACTIVE state in _set_sensitive

They both depend on input, which an insensitive widget does not receive.
This commit is contained in:
Timm Bäder 2017-08-01 18:43:42 +02:00
parent 36c4582086
commit f7bb6a7aa8

View File

@ -8246,7 +8246,8 @@ gtk_widget_set_sensitive (GtkWidget *widget,
else
{
data.flags_to_set = GTK_STATE_FLAG_INSENSITIVE;
data.flags_to_unset = 0;
data.flags_to_unset = GTK_STATE_FLAG_PRELIGHT |
GTK_STATE_FLAG_ACTIVE;
}
gtk_widget_propagate_state (widget, &data);