additional cases handled (untested)

This commit is contained in:
Dan 2025-02-12 19:10:02 -06:00
parent 76c1c997ac
commit bc1e51f80e
4 changed files with 4 additions and 4 deletions

View File

@ -1955,7 +1955,7 @@ void display_alert(int title_id, int prefix_id, int button_id, const char *text)
GTK_MESSAGE_WARNING,
GTK_BUTTONS_NONE,
GetString(title_id), NULL);
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), text);
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), "%s", text);
gtk_dialog_add_button(GTK_DIALOG(dialog), GetString(button_id), GTK_RESPONSE_CLOSE);
g_signal_connect(dialog, "response", G_CALLBACK(dl_destroyed), NULL);
gtk_widget_show(dialog);

View File

@ -1440,7 +1440,7 @@ void display_alert(int title_id, int prefix_id, int button_id, const char *text)
GTK_MESSAGE_WARNING,
GTK_BUTTONS_NONE,
GetString(title_id), NULL);
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), text);
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), "%s", text);
gtk_dialog_add_button(GTK_DIALOG(dialog), GetString(button_id), GTK_RESPONSE_CLOSE);
g_signal_connect(dialog, "response", G_CALLBACK(dl_destroyed), NULL);
gtk_widget_show(dialog);

View File

@ -2374,7 +2374,7 @@ void display_alert(int title_id, int prefix_id, int button_id, const char *text)
GTK_MESSAGE_WARNING,
GTK_BUTTONS_NONE,
GetString(title_id), NULL);
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), text);
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), "%s", text);
gtk_dialog_add_button(GTK_DIALOG(dialog), GetString(button_id), GTK_RESPONSE_CLOSE);
g_signal_connect(dialog, "response", G_CALLBACK(dl_destroyed), NULL);
gtk_widget_show(dialog);

View File

@ -1724,7 +1724,7 @@ void display_alert(int title_id, int prefix_id, int button_id, const char *text)
GTK_MESSAGE_WARNING,
GTK_BUTTONS_NONE,
GetString(title_id), NULL);
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), text);
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), "%s", text);
gtk_dialog_add_button(GTK_DIALOG(dialog), GetString(button_id), GTK_RESPONSE_CLOSE);
g_signal_connect(dialog, "response", G_CALLBACK(dl_destroyed), NULL);
gtk_widget_show(dialog);