From 3c54d59e1c13aaae716845fed2585770c3ca9d14 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 24 Feb 2023 10:01:26 +0100 Subject: GUI: Avoid using format string for reminder window --- src/gui_export.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/gui_export.c b/src/gui_export.c index 4c8a5959..7576d271 100644 --- a/src/gui_export.c +++ b/src/gui_export.c @@ -125,13 +125,14 @@ static int export_to_mtz(struct gui_merge_result *result, } -void reminder(GtkWidget *window, const char *message) +static void reminder(GtkWidget *window, const char *message) { - GtkWidget *dialog = gtk_message_dialog_new_with_markup(GTK_WINDOW(window), - GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_INFO, - GTK_BUTTONS_OK, - message); + GtkWidget *dialog = gtk_message_dialog_new(GTK_WINDOW(window), + GTK_DIALOG_DESTROY_WITH_PARENT, + GTK_MESSAGE_INFO, + GTK_BUTTONS_OK, + NULL); + gtk_message_dialog_set_markup(GTK_MESSAGE_DIALOG(dialog), message); gtk_window_set_title(GTK_WINDOW(dialog), "Reminder"); gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); -- cgit v1.2.3