menubutton: Remove prelight state when button is deactivated

If the button is deactivated, it should not appear to be hovered
anymore.

https://bugzilla.gnome.org/show_bug.cgi?id=781992
This commit is contained in:
Michael Catanzaro 2017-04-30 13:26:13 -05:00 committed by Timm Bäder
parent 00387c24ca
commit cfd15c95b0

View File

@ -652,6 +652,7 @@ static gboolean
menu_deactivate_cb (GtkMenuButton *menu_button)
{
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (menu_button), FALSE);
gtk_widget_unset_state_flags (GTK_WIDGET (menu_button), GTK_STATE_FLAG_PRELIGHT);
return TRUE;
}