[nautilus] batch-rename-utilities: 0 pad the track number
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] batch-rename-utilities: 0 pad the track number
- Date: Tue, 30 Aug 2016 08:36:55 +0000 (UTC)
commit cf7c8acfd2f4101bf2248a494adb94dccdf0afe4
Author: Carlos Soriano <csoriano gnome org>
Date: Tue Aug 30 10:07:11 2016 +0200
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
src/nautilus-batch-rename-utilities.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-batch-rename-utilities.c b/src/nautilus-batch-rename-utilities.c
index 07ba1c4..419037b 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;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]