From 66693775d91eb8278bc7f9d0c5674cdccbc3dd0b Mon Sep 17 00:00:00 2001 From: Carlos Soriano Date: Fri, 9 Sep 2016 23:09:08 +0200 Subject: batch-rename-dialog: major refactoring This is a refactoring that is difficult to split in several pieces. This patch implements the following changes: - Use loops instead of serie of if/elses. - Use enums and static arrays to define a static serie of tag types and properties. - Use enums for ordering and retrieval of properties of tags instead of searching. - Merge common code. - Extract common code in functions. - Mark for translation some strings. - Plug some leaks. - Fix some free-after-free. - Fix issue with condition for unavailable metadata, that was exacerbated with this refactoring. https://bugzilla.gnome.org/show_bug.cgi?id=770586 --- src/nautilus-batch-rename-utilities.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nautilus-batch-rename-utilities.h') diff --git a/src/nautilus-batch-rename-utilities.h b/src/nautilus-batch-rename-utilities.h index 9025cc8ab..49631b7ae 100644 --- a/src/nautilus-batch-rename-utilities.h +++ b/src/nautilus-batch-rename-utilities.h @@ -60,4 +60,6 @@ gboolean file_name_conflicts_with_results (GList *selection, GString* batch_rename_replace_label_text (gchar *label, const gchar *substr); +gchar* batch_rename_get_tag_text_representation (TagConstants tag_constants); + #endif /* NAUTILUS_BATCH_RENAME_UTILITIES_H */ -- cgit v1.2.1