diff options
author | Ricard Gascons <gascons1995@gmail.com> | 2016-03-01 23:40:41 +0100 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-03-07 21:13:02 +0100 |
commit | 9d28b3263dbce896bf017438a0059a2da4e32f2c (patch) | |
tree | 36cf578dd25dd6dc33ca22fb36cdd4fd88988f8a /libnautilus-private | |
parent | ecb1646ba1f9798ee45d613883e3a5d0663ada13 (diff) | |
download | nautilus-9d28b3263dbce896bf017438a0059a2da4e32f2c.tar.gz |
nautilus-file-operations.c: new files from template no longer begin with "Untitled"
When a new document is created using a template, the word "Untitled"
is displayed in front of the template name. For example,
creating a new document with a template called "document.doc"
will create new file named "Untitled document.doc".
This is obviusly a non-practical use of templates and this patch
aims to fix this miss-behavior.
The fix is simple, the word "Untitled" has been removed from the
code when a user creates a new document from a template.
https://bugzilla.gnome.org/show_bug.cgi?id=762774
Diffstat (limited to 'libnautilus-private')
-rw-r--r-- | libnautilus-private/nautilus-file-operations.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-file-operations.c b/libnautilus-private/nautilus-file-operations.c index 3b531f15e..a34309847 100644 --- a/libnautilus-private/nautilus-file-operations.c +++ b/libnautilus-private/nautilus-file-operations.c @@ -6476,7 +6476,7 @@ create_task_thread_func (GTask *task, if (job->src != NULL) { basename = g_file_get_basename (job->src); /* localizers: the initial name of a new template document */ - filename = g_strdup_printf (_("Untitled %s"), basename); + filename = g_strdup_printf ("%s", basename); g_free (basename); } |