summaryrefslogtreecommitdiff
path: root/src/nautilus-batch-rename-utilities.c
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2016-08-30 10:07:11 +0200
committerCarlos Soriano <csoriano@gnome.org>2016-08-30 10:36:45 +0200
commitcf7c8acfd2f4101bf2248a494adb94dccdf0afe4 (patch)
tree0eec13546f835a759e79bc886ddff2d120cd79ff /src/nautilus-batch-rename-utilities.c
parentabcb0b6aa24c4b7932942198f6a724b4540085f3 (diff)
downloadnautilus-cf7c8acfd2f4101bf2248a494adb94dccdf0afe4.tar.gz
batch-rename-utilities: 0 pad the track number
Usually the track numbers are 0 padded by 2. Do that in batch renaming for familiarity. https://bugzilla.gnome.org/show_bug.cgi?id=770586
Diffstat (limited to 'src/nautilus-batch-rename-utilities.c')
-rw-r--r--src/nautilus-batch-rename-utilities.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-batch-rename-utilities.c b/src/nautilus-batch-rename-utilities.c
index 07ba1c459..419037bb9 100644
--- a/src/nautilus-batch-rename-utilities.c
+++ b/src/nautilus-batch-rename-utilities.c
@@ -375,7 +375,7 @@ batch_rename_format (NautilusFile *file,
if (metadata != NULL)
{
- new_name = g_string_append (new_name, metadata);
+ g_string_append_printf (new_name, "%02d", atoi (metadata));
added_tag = TRUE;
}
}