diff options
Diffstat (limited to 'gtk/gtktogglebutton.c')
-rw-r--r-- | gtk/gtktogglebutton.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtktogglebutton.c b/gtk/gtktogglebutton.c index 1e53a896c6..93ba0e7c07 100644 --- a/gtk/gtktogglebutton.c +++ b/gtk/gtktogglebutton.c @@ -199,6 +199,9 @@ gtk_toggle_button_clicked (GtkButton *button) GtkToggleButton *toggle_button = GTK_TOGGLE_BUTTON (button); GtkToggleButtonPrivate *priv = gtk_toggle_button_get_instance_private (toggle_button); + if (priv->active && (priv->group_prev || priv->group_next)) + return; + gtk_toggle_button_set_active (toggle_button, !priv->active); } |