Project

General

Profile

Bug #200 » 0042-gtk4-x-Fix-science-dialog-help-checkbox.patch

main - Marko Lindqvist, 01/26/2024 12:12 AM

View differences:

client/gui-gtk-4.0/repodlgs.c
return;
}
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(data))) {
if (gtk_check_button_get_active(GTK_CHECK_BUTTON(data))) {
popup_help_dialog_typed(tech_name, HELP_TECH);
} else if (can_client_issue_orders()) {
dsend_packet_player_research(&client.conn, tech);
......
return;
}
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(data))) {
if (gtk_check_button_get_active(GTK_CHECK_BUTTON(data))) {
popup_help_dialog_typed(tech_name, HELP_TECH);
} else if (can_client_issue_orders()) {
dsend_packet_player_tech_goal(&client.conn, tech);
client/gui-gtk-5.0/repodlgs.c
return;
}
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(data))) {
if (gtk_check_button_get_active(GTK_CHECK_BUTTON(data))) {
popup_help_dialog_typed(tech_name, HELP_TECH);
} else if (can_client_issue_orders()) {
dsend_packet_player_research(&client.conn, tech);
......
return;
}
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(data))) {
if (gtk_check_button_get_active(GTK_CHECK_BUTTON(data))) {
popup_help_dialog_typed(tech_name, HELP_TECH);
} else if (can_client_issue_orders()) {
dsend_packet_player_tech_goal(&client.conn, tech);
(1-1/2)