Project

General

Profile

Bug #814 » 0013-Fix-diplomacy-crash-when-partner-government-unknown.patch

S3_1 - Marko Lindqvist, 09/06/2024 10:47 PM

View differences:

client/gui-gtk-3.0/diplodlg.c
gtk_widget_set_halign(label, GTK_ALIGN_CENTER);
gtk_widget_set_valign(label, GTK_ALIGN_CENTER);
buf = g_strdup_printf("<span size=\"large\" weight=\"bold\">%s</span>",
ruler_title_for_player(plr1, plr_buf, sizeof(plr_buf)));
title_for_player(plr1, plr_buf, sizeof(plr_buf)));
gtk_label_set_markup(GTK_LABEL(label), buf);
g_free(buf);
gtk_container_add(GTK_CONTAINER(hbox), label);
client/gui-gtk-3.22/diplodlg.c
gtk_widget_set_halign(label, GTK_ALIGN_CENTER);
gtk_widget_set_valign(label, GTK_ALIGN_CENTER);
buf = g_strdup_printf("<span size=\"large\" weight=\"bold\">%s</span>",
ruler_title_for_player(plr1, plr_buf, sizeof(plr_buf)));
title_for_player(plr1, plr_buf, sizeof(plr_buf)));
gtk_label_set_markup(GTK_LABEL(label), buf);
g_free(buf);
gtk_container_add(GTK_CONTAINER(hbox), label);
client/gui-gtk-4.0/diplodlg.c
gtk_widget_set_halign(label, GTK_ALIGN_CENTER);
gtk_widget_set_valign(label, GTK_ALIGN_CENTER);
buf = g_strdup_printf("<span size=\"large\" weight=\"bold\">%s</span>",
ruler_title_for_player(plr1, plr_buf, sizeof(plr_buf)));
title_for_player(plr1, plr_buf, sizeof(plr_buf)));
gtk_label_set_markup(GTK_LABEL(label), buf);
g_free(buf);
gtk_grid_attach(GTK_GRID(hgrid), label, grid_col++, 0, 1, 1);
client/gui-qt/diplodlg.cpp
} else {
plr2_label->setText("FLAG MISSING");
}
text2 = ruler_title_for_player(player_by_number(counterpart),
plr_buf, sizeof(plr_buf));
text2 = title_for_player(player_by_number(counterpart),
plr_buf, sizeof(plr_buf));
text2 = "<b><center>" + text2.toHtmlEscaped() + "</center></b>";
label2->setText(text2);
plr2_accept = new QLabel;
(4-4/4)