forked from AuroraMiddleware/gtk
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:
parent
30d6b08271
commit
36c4582086
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user