diff options
author | Carlos Soriano <csoriano@gnome.org> | 2016-09-09 23:09:08 +0200 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-09-12 13:52:34 +0200 |
commit | 66693775d91eb8278bc7f9d0c5674cdccbc3dd0b (patch) | |
tree | 8809f6581afd75686699e76a8b76a167abd8f973 /src/nautilus-batch-rename-utilities.h | |
parent | ac91c7cad629a1ef6bf7757d27ab7267bb3e242c (diff) | |
download | nautilus-66693775d91eb8278bc7f9d0c5674cdccbc3dd0b.tar.gz |
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
Diffstat (limited to 'src/nautilus-batch-rename-utilities.h')
-rw-r--r-- | src/nautilus-batch-rename-utilities.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |