Use g_filename_display_name instead of g_filename_to_utf8

This commit is contained in:
Yevgen Muntyan 2007-04-09 05:02:50 -05:00
parent 835ee73b41
commit 96c03baba7
2 changed files with 2 additions and 2 deletions

View File

@ -290,7 +290,7 @@ _moo_bookmark_set_path (MooBookmark *bookmark,
g_return_if_fail (bookmark != NULL);
g_return_if_fail (path != NULL);
display_path = g_filename_to_utf8 (path, -1, NULL, NULL, NULL);
display_path = g_filename_display_name (path);
g_return_if_fail (display_path != NULL);
g_free (bookmark->path);

View File

@ -704,7 +704,7 @@ delete_file (G_GNUC_UNUSED MooFileSystem *fs,
if (_moo_remove (path))
{
int err = errno;
char *path_utf8 = g_filename_to_utf8 (path, -1, NULL, NULL, NULL);
char *path_utf8 = g_filename_display_name (path);
g_set_error (error, MOO_FILE_ERROR,
_moo_file_error_from_errno (err),
"Could not delete file '%s': %s",