summaryrefslogtreecommitdiff
path: root/gtk/gtkmenubutton.c
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@igalia.com>2017-04-30 13:26:13 -0500
committerTimm Bäder <mail@baedert.org>2017-05-08 16:03:33 +0200
commitcfd15c95b0e75d3f75ca62cc12e6ff680d39eb57 (patch)
tree25a9e075160eda70ea62488b4d01c120134e027a /gtk/gtkmenubutton.c
parent00387c24ca8520e9f8c0696a8a5b91d8db7f132f (diff)
downloadgtk+-cfd15c95b0e75d3f75ca62cc12e6ff680d39eb57.tar.gz
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
Diffstat (limited to 'gtk/gtkmenubutton.c')
-rw-r--r--gtk/gtkmenubutton.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkmenubutton.c b/gtk/gtkmenubutton.c
index 43e18a396e..9a3d57235e 100644
--- a/gtk/gtkmenubutton.c
+++ b/gtk/gtkmenubutton.c
@@ -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;
}