Skip to content

Commit

Permalink
Fix selection on same action_dialod button loosing red background
Browse files Browse the repository at this point in the history
  • Loading branch information
g0orx committed Aug 20, 2021
1 parent 9d37345 commit 9731854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action_dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9731854

Please sign in to comment.