checkmenuitem: Fix indicator state
We need to remove the inconsistent and checked state first so we actually remove it.
This commit is contained in:
committed by
Matthias Clasen
parent
2d3f57a420
commit
333b52bc14
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user