diff options
author | Thomas White <taw@physics.org> | 2023-02-24 10:01:26 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2023-02-24 10:01:26 +0100 |
commit | 3c54d59e1c13aaae716845fed2585770c3ca9d14 (patch) | |
tree | 51792234fe6ea7e4610415a3e3d4979ae4b302dc /src | |
parent | a38407fe140d6336e2fa02f0240b1ec993ca321a (diff) |
GUI: Avoid using format string for reminder window
Diffstat (limited to 'src')
-rw-r--r-- | src/gui_export.c | 13 |
1 files 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); |