check button: Fix inconsistent state

This has been broken since the inconsistent state
was moved here in 2aea8dfee9.
This commit is contained in:
Matthias Clasen 2017-12-25 11:27:16 -05:00
parent 5f8e2fcf93
commit b379ca3e02

View File

@ -562,8 +562,10 @@ gtk_check_button_set_inconsistent (GtkCheckButton *check_button,
g_return_if_fail (GTK_IS_CHECK_BUTTON (check_button));
inconsistent = !!inconsistent;
if (inconsistent != priv->inconsistent)
if (priv->inconsistent != inconsistent)
{
priv->inconsistent = inconsistent;
if (inconsistent)
gtk_widget_set_state_flags (GTK_WIDGET (check_button), GTK_STATE_FLAG_INCONSISTENT, FALSE);
else