[gtk+/portal-race: 97/129] checkmenuitem: Fix indicator state



commit 3b8c87bb543f57add30c12030eeba7602efb29ed
Author: Timm Bäder <mail baedert org>
Date:   Sat Jun 24 07:47:55 2017 +0200

    checkmenuitem: Fix indicator state
    
    We need to remove the inconsistent and checked state first so we
    actually remove it.

 gtk/gtkcheckmenuitem.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcheckmenuitem.c b/gtk/gtkcheckmenuitem.c
index 7f1d2fd..24dd548 100644
--- a/gtk/gtkcheckmenuitem.c
+++ b/gtk/gtkcheckmenuitem.c
@@ -359,6 +359,7 @@ update_node_state (GtkCheckMenuItem *check_menu_item)
   GtkStateFlags state;
 
   state = gtk_widget_get_state_flags (GTK_WIDGET (check_menu_item));
+  state &= ~(GTK_STATE_FLAG_CHECKED | GTK_STATE_FLAG_INCONSISTENT);
 
   if (priv->inconsistent)
     state |= GTK_STATE_FLAG_INCONSISTENT;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]