[gtk+/gtk-3-22] menubutton: Remove prelight state when button is deactivated
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] menubutton: Remove prelight state when button is deactivated
- Date: Mon, 8 May 2017 14:10:21 +0000 (UTC)
commit 001fa0a8101f9445a3631518432d9ded0b861088
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sun Apr 30 13:26:13 2017 -0500
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
gtk/gtkmenubutton.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkmenubutton.c b/gtk/gtkmenubutton.c
index 4534b4d..9a2115e 100644
--- a/gtk/gtkmenubutton.c
+++ b/gtk/gtkmenubutton.c
@@ -653,6 +653,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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]