From 726588828d52ee60cf56876d74ebc72a8bae4ce9 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Tue, 19 Jul 2022 19:59:17 +0300 Subject: [PATCH 62/62] gtk4: Turn edit tool buttons to GTkToggleButtons See osdn #45139 Signed-off-by: Marko Lindqvist --- client/gui-gtk-4.0/editgui.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/gui-gtk-4.0/editgui.c b/client/gui-gtk-4.0/editgui.c index 67aec168fc..e2c7aa924b 100644 --- a/client/gui-gtk-4.0/editgui.c +++ b/client/gui-gtk-4.0/editgui.c @@ -412,7 +412,7 @@ static void editbar_add_tool_button(struct editbar *eb, { GdkPixbuf *pixbuf; GtkWidget *image, *button, *hbox; - GtkCheckButton *parent = NULL; + GtkToggleButton *parent = NULL; struct sprite *sprite; int i; @@ -422,17 +422,17 @@ static void editbar_add_tool_button(struct editbar *eb, for (i = 0; i < NUM_EDITOR_TOOL_TYPES; i++) { if (eb->tool_buttons[i] != NULL) { - parent = GTK_CHECK_BUTTON(eb->tool_buttons[i]); + parent = GTK_TOGGLE_BUTTON(eb->tool_buttons[i]); break; } } if (parent == NULL) { - button = gtk_check_button_new(); + button = gtk_toggle_button_new(); } else { - button = gtk_check_button_new(); - gtk_check_button_set_group(GTK_CHECK_BUTTON(button), - GTK_CHECK_BUTTON(parent)); + button = gtk_toggle_button_new(); + gtk_toggle_button_set_group(GTK_TOGGLE_BUTTON(button), + GTK_TOGGLE_BUTTON(parent)); } sprite = editor_tool_get_sprite(ett); -- 2.35.1