[gtk+/wip/baedert/drawing: 11/17] checkmenuitem: Fix indicator state
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 11/17] checkmenuitem: Fix indicator state
- Date: Sun, 25 Jun 2017 16:59:46 +0000 (UTC)
commit f196f72e714e820d6241b06f987280c6611a5576
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]