summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorHidetoshi Tajima <hidetoshi.tajima@sun.com>2003-09-21 09:52:44 +0000
committerJens Finke <jens@src.gnome.org>2003-09-21 09:52:44 +0000
commit313158dc603accbc64147cf1796b8ed3d9ed2db6 (patch)
tree2942188b849459641bd5112174ab7aeb3a4ab425 /shell
parent7e4020404bb00528571714bd68e5d3579e58c696 (diff)
downloadeog-313158dc603accbc64147cf1796b8ed3d9ed2db6.tar.gz
Prepare non-ascii uris for display correctly. - #122671.
2003-09-21 Hidetoshi Tajima <hidetoshi.tajima@sun.com> * shell/main.c (show_nonexistent_files): Prepare non-ascii uris for display correctly. - #122671.
Diffstat (limited to 'shell')
-rw-r--r--shell/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/shell/main.c b/shell/main.c
index c0e9c2ce..83fba9f9 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -297,18 +297,22 @@ show_nonexistent_files (GList *error_list)
char *str;
int n;
GtkWidget *dlg;
+ char *path;
g_assert (error_list != NULL);
str = concat_string_list_with_newlines (error_list, &n);
- dlg = eog_hig_dialog_new (GTK_STOCK_DIALOG_ERROR, _("Could not find files"), str, TRUE);
+ path = gnome_vfs_format_uri_for_display (str);
+
+ dlg = eog_hig_dialog_new (GTK_STOCK_DIALOG_ERROR, _("Could not find files"), path, TRUE);
gtk_dialog_add_button (GTK_DIALOG (dlg), GTK_STOCK_OK, GTK_RESPONSE_OK);
gtk_widget_show (dlg);
gtk_dialog_run (GTK_DIALOG (dlg));
gtk_widget_destroy (dlg);
+ g_free (path);
g_free (str);
}