[gtk+] check button: Fix inconsistent state
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] check button: Fix inconsistent state
- Date: Mon, 25 Dec 2017 16:36:48 +0000 (UTC)
commit b379ca3e028bc9059c966afbcb1a5a7e70b9c147
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Dec 25 11:27:16 2017 -0500
check button: Fix inconsistent state
This has been broken since the inconsistent state
was moved here in 2aea8dfee97b.
gtk/gtkcheckbutton.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c
index d67b686..c15881e 100644
--- a/gtk/gtkcheckbutton.c
+++ b/gtk/gtkcheckbutton.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]