From 84897026402ebd09c8b0b54365aa28c47cbecd53 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 10 Sep 2022 06:42:05 +0300 Subject: [PATCH 54/54] gtk4: Activate unitsel*dlg default option as GtkCheckButton Old code tried to activate it as a GtkToggleButton. See osdn #45620 Signed-off-by: Marko Lindqvist --- client/gui-gtk-4.0/unitselextradlg.c | 2 +- client/gui-gtk-4.0/unitselunitdlg.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/gui-gtk-4.0/unitselextradlg.c b/client/gui-gtk-4.0/unitselextradlg.c index 409b3dc46a..685986bbdf 100644 --- a/client/gui-gtk-4.0/unitselextradlg.c +++ b/client/gui-gtk-4.0/unitselextradlg.c @@ -215,7 +215,7 @@ bool select_tgt_extra(struct unit *actor, struct tile *ptile, gtk_grid_attach(GTK_GRID(main_box), box, 0, main_row++, 1, 1); fc_assert_ret_val(default_option, FALSE); - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(default_option), TRUE); + gtk_check_button_set_active(GTK_CHECK_BUTTON(default_option), TRUE); gtk_box_append(GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dlg))), main_box); diff --git a/client/gui-gtk-4.0/unitselunitdlg.c b/client/gui-gtk-4.0/unitselunitdlg.c index cfdf43e4db..7772d59589 100644 --- a/client/gui-gtk-4.0/unitselunitdlg.c +++ b/client/gui-gtk-4.0/unitselunitdlg.c @@ -175,7 +175,7 @@ bool select_tgt_unit(struct unit *actor, struct tile *ptile, gtk_grid_attach(GTK_GRID(main_box), box, 0, main_row++, 1, 1); fc_assert_ret_val(default_option, FALSE); - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(default_option), TRUE); + gtk_check_button_set_active(GTK_CHECK_BUTTON(default_option), TRUE); gtk_box_append(GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dlg))), main_box); -- 2.35.1