use uri instead of the pathname for UTF-8 safety.

Wed Mar 10 00:24:24 2004  Jonathan Blandford  <jrb@gnome.org>

        * gtk/gtkfilechooserdefault.c (error_dialog): use uri instead of
        the pathname for UTF-8 safety.
This commit is contained in:
Jonathan Blandford
2004-03-10 05:24:23 +00:00
committed by Jonathan Blandford
parent 382bf3a113
commit 5d8863bbac
6 changed files with 30 additions and 2 deletions

View File

@ -606,13 +606,16 @@ error_dialog (GtkFileChooserDefault *impl,
const GtkFilePath *path,
GError *error)
{
char *uri;
char *text;
uri = gtk_file_system_path_to_uri (impl->file_system, path);
text = g_strdup_printf (msg,
gtk_file_path_get_string (path),
error->message);
uri,
error->message);
error_message (impl, text);
g_free (text);
g_free (uri);
g_error_free (error);
}