button: Stop fiddling with PRELIGHT state

This is done automatically now and it's wrong here since it gets
executed after gesture release.
This commit is contained in:
Timm Bäder 2017-08-01 18:16:40 +02:00
parent 30d6b08271
commit 36c4582086

View File

@ -1058,11 +1058,7 @@ gtk_button_update_state (GtkButton *button)
else
depressed = priv->in_button && priv->button_down;
new_state = gtk_widget_get_state_flags (GTK_WIDGET (button)) &
~(GTK_STATE_FLAG_PRELIGHT | GTK_STATE_FLAG_ACTIVE);
if (priv->in_button)
new_state |= GTK_STATE_FLAG_PRELIGHT;
new_state = gtk_widget_get_state_flags (GTK_WIDGET (button)) & ~(GTK_STATE_FLAG_ACTIVE);
if (depressed)
new_state |= GTK_STATE_FLAG_ACTIVE;