From 591b52584e9980a718e011e37386679815769747 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 30 Aug 2020 18:19:05 -0400 Subject: [PATCH] checkbutton: Fix clicking on the last group member Clicking on the last group member was letting me uncheck it, creating a radio group without active item, which is not what we want. --- gtk/gtkcheckbutton.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c index ac087f5079..f9ba214ddd 100644 --- a/gtk/gtkcheckbutton.c +++ b/gtk/gtkcheckbutton.c @@ -264,7 +264,7 @@ click_released_cb (GtkGestureClick *gesture, GtkCheckButton *self = GTK_CHECK_BUTTON (widget); GtkCheckButtonPrivate *priv = gtk_check_button_get_instance_private (self); - if (priv->active && priv->group_prev) + if (priv->active && (priv->group_prev || priv->group_next)) return; gtk_check_button_set_active (self, !priv->active);