diff options
author | Alexander Larsson <alexl@redhat.com> | 2003-01-16 15:11:51 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2003-01-16 15:11:51 +0000 |
commit | 26575ec3a1e1fafec1b465d361413f6506c63ec1 (patch) | |
tree | 40b5019da238d8f86394feae361c74d2a5af7301 /libnautilus-private/nautilus-file-operations.c | |
parent | 5007870e5a9983756956934e6dfe18fe2746c16c (diff) | |
download | nautilus-26575ec3a1e1fafec1b465d361413f6506c63ec1.tar.gz |
Convert new directory name with g_filename_from_utf8(). (#90154)
2003-01-16 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-file-operations.c (nautilus_file_operations_new_folder):
Convert new directory name with g_filename_from_utf8(). (#90154)
Diffstat (limited to 'libnautilus-private/nautilus-file-operations.c')
-rw-r--r-- | libnautilus-private/nautilus-file-operations.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-file-operations.c b/libnautilus-private/nautilus-file-operations.c index b8bf97ad0..97a5b249c 100644 --- a/libnautilus-private/nautilus-file-operations.c +++ b/libnautilus-private/nautilus-file-operations.c @@ -2126,6 +2126,7 @@ nautilus_file_operations_new_folder (GtkWidget *parent_view, { GList *target_uri_list; GnomeVFSURI *uri, *parent_uri; + char *dirname; NewFolderTransferState *state; state = g_new (NewFolderTransferState, 1); @@ -2137,7 +2138,10 @@ nautilus_file_operations_new_folder (GtkWidget *parent_view, /* pass in the target directory and the new folder name as a destination URI */ parent_uri = gnome_vfs_uri_new (parent_dir); /* localizers: the initial name of a new folder */ - uri = gnome_vfs_uri_append_file_name (parent_uri, _("untitled folder")); + + dirname = g_filename_from_utf8 (_("untitled folder"), -1, NULL, NULL, NULL); + uri = gnome_vfs_uri_append_file_name (parent_uri, dirname); + g_free (dirname); target_uri_list = g_list_prepend (NULL, uri); gnome_vfs_async_xfer (&state->handle, NULL, target_uri_list, |