]> Pileus Git - ~andy/gtk/commitdiff
use uri instead of the pathname for UTF-8 safety.
authorJonathan Blandford <jrb@gnome.org>
Wed, 10 Mar 2004 05:24:23 +0000 (05:24 +0000)
committerJonathan Blandford <jrb@src.gnome.org>
Wed, 10 Mar 2004 05:24:23 +0000 (05:24 +0000)
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.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkfilechooserdefault.c

index a2809e17452ac938662fe93750ee556237abb36f..380ffce6818da790f77df085ed71b0b853963652 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
 Wed Mar 10 00:10:47 2004  Jonathan Blandford  <jrb@gnome.org>
 
        * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Always
index a2809e17452ac938662fe93750ee556237abb36f..380ffce6818da790f77df085ed71b0b853963652 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 Wed Mar 10 00:10:47 2004  Jonathan Blandford  <jrb@gnome.org>
 
        * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Always
index a2809e17452ac938662fe93750ee556237abb36f..380ffce6818da790f77df085ed71b0b853963652 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 Wed Mar 10 00:10:47 2004  Jonathan Blandford  <jrb@gnome.org>
 
        * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Always
index a2809e17452ac938662fe93750ee556237abb36f..380ffce6818da790f77df085ed71b0b853963652 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 Wed Mar 10 00:10:47 2004  Jonathan Blandford  <jrb@gnome.org>
 
        * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Always
index a2809e17452ac938662fe93750ee556237abb36f..380ffce6818da790f77df085ed71b0b853963652 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 Wed Mar 10 00:10:47 2004  Jonathan Blandford  <jrb@gnome.org>
 
        * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Always
index 16b7fe61ec5b62aa5ff457776ff059d0432e1f84..ab6645f7183d35b838e51fcc7899a716c8abe306 100644 (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);
 }