summaryrefslogtreecommitdiff
path: root/src/nautilus-batch-rename-utilities.h
diff options
context:
space:
mode:
authorAlexandru Pandelea <alexandru.pandelea@gmail.com>2016-10-16 19:28:12 +0300
committerAlexandru Pandelea <alexandru.pandelea@gmail.com>2016-10-26 20:26:35 +0300
commitfc4135d8124157d2435d66aceea5958ed643227d (patch)
tree0ae7dc0b1ee3599e47b9e96b603812205a4ea5f9 /src/nautilus-batch-rename-utilities.h
parent6cc8fdedf68dec159f18cee7039ce0b8b5c1a77a (diff)
downloadnautilus-fc4135d8124157d2435d66aceea5958ed643227d.tar.gz
batch-rename: fix file reordering before the rename
There are cases where the files are not reordered correctly. To fix this, the order of the files is checked until no more changes are made. In this patch, the reordering code is also extracted in a common function. https://bugzilla.gnome.org/show_bug.cgi?id=771583
Diffstat (limited to 'src/nautilus-batch-rename-utilities.h')
-rw-r--r--src/nautilus-batch-rename-utilities.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nautilus-batch-rename-utilities.h b/src/nautilus-batch-rename-utilities.h
index 49631b7ae..178f1aed7 100644
--- a/src/nautilus-batch-rename-utilities.h
+++ b/src/nautilus-batch-rename-utilities.h
@@ -62,4 +62,11 @@ GString* batch_rename_replace_label_text (gchar *label,
gchar* batch_rename_get_tag_text_representation (TagConstants tag_constants);
+void batch_rename_sort_lists_for_rename (GList **selection,
+ GList **new_names,
+ GList **old_names,
+ GList **new_files,
+ GList **old_files,
+ gboolean is_undo_redo);
+
#endif /* NAUTILUS_BATCH_RENAME_UTILITIES_H */