From 97318547cdedcb9afc66bf0a41fe008155a404fe Mon Sep 17 00:00:00 2001 From: John Melton G0ORX Date: Fri, 20 Aug 2021 08:58:17 +0100 Subject: [PATCH] Fix selection on same action_dialod button loosing red background --- action_dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action_dialog.c b/action_dialog.c index f60063d..0e4cd48 100644 --- a/action_dialog.c +++ b/action_dialog.c @@ -18,7 +18,7 @@ static int action; static void action_select_cb(GtkWidget *widget,gpointer data) { CHOICE *choice=(CHOICE *)data; g_signal_handler_block(G_OBJECT(previous_button),previous_signal_id); - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(previous_button),FALSE); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(previous_button),widget==previous_button); g_signal_handler_unblock(G_OBJECT(previous_button),previous_signal_id); previous_button=widget; previous_signal_id=choice->signal_id; -- 2.45.2