diff options
author | rbuj <[email protected]> | 2022-07-27 11:49:11 +0200 |
---|---|---|
committer | mouse <[email protected]> | 2023-03-31 11:27:15 +0800 |
commit | ddd95f51469222984a38631d7f88eee6f1ed8220 (patch) | |
tree | a2ea5291807100ccd881802ce6c2b22b1b45303f /baobab/src | |
parent | 8b1b227abd0c3a1a32a1c37c5d3ec50d73ed60c9 (diff) | |
download | mate-utils-ddd95f51469222984a38631d7f88eee6f1ed8220.tar.bz2 mate-utils-ddd95f51469222984a38631d7f88eee6f1ed8220.tar.xz |
baobab-remote-connect-dialog: fix -Wformat-nonliteral warning
Diffstat (limited to 'baobab/src')
-rw-r--r-- | baobab/src/baobab-remote-connect-dialog.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/baobab/src/baobab-remote-connect-dialog.c b/baobab/src/baobab-remote-connect-dialog.c index 10d9f940..484ffbf5 100644 --- a/baobab/src/baobab-remote-connect-dialog.c +++ b/baobab/src/baobab-remote-connect-dialog.c @@ -62,24 +62,18 @@ display_error_dialog (GError *error, { GtkWidget *dlg; char *parse_name; - char *error_message; parse_name = g_file_get_parse_name (location); - error_message = g_strdup_printf (_("Cannot scan location \"%s\""), - parse_name); - g_free (parse_name); - dlg = gtk_message_dialog_new (parent, - GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_ERROR, - GTK_BUTTONS_OK, - error_message, NULL); + GTK_DIALOG_DESTROY_WITH_PARENT, + GTK_MESSAGE_ERROR, + GTK_BUTTONS_OK, + _("Cannot scan location \"%s\""), parse_name); + g_free (parse_name); gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dlg), "%s", error->message); - g_free (error_message); - gtk_dialog_run (GTK_DIALOG (dlg)); gtk_widget_destroy (dlg); } |