summaryrefslogtreecommitdiff
path: root/src/nautilus-files-view.h
diff options
context:
space:
mode:
authorCorey Berla <corey@berla.me>2023-01-20 10:36:59 -0800
committerCorey Berla <corey@berla.me>2023-04-07 20:46:45 -0700
commitcb406e31a41511b0450ab9a714813de335afd445 (patch)
tree63161b1ddfe18eecd5aebc9fa99a66a7d49abdb2 /src/nautilus-files-view.h
parent65f420907b0541a371a0815399c8834ceb72a62f (diff)
downloadnautilus-cb406e31a41511b0450ab9a714813de335afd445.tar.gz
files-view: Replace REMOVE_FILE with REMOVE_FILESwip/corey/performance-remove-files
Files are added in bulk to the view with ADD_FILES, but then removed from the view with REMOVE_FILE, which takes a single file. This is very inefficient in the case where a large number of items are deleted. In other words, if you delete a folder with 1,000 items, the process completes very quickly, but if you delete the 1,000 items, Nautilus will hang for an extended period of time. This can be a common problem if the view is current showing Trash, and the the trash is emptied.
Diffstat (limited to 'src/nautilus-files-view.h')
-rw-r--r--src/nautilus-files-view.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nautilus-files-view.h b/src/nautilus-files-view.h
index 536c613f6..2e088c364 100644
--- a/src/nautilus-files-view.h
+++ b/src/nautilus-files-view.h
@@ -60,8 +60,8 @@ struct _NautilusFilesViewClass {
*/
void (* add_files) (NautilusFilesView *view,
GList *files);
- void (* remove_file) (NautilusFilesView *view,
- NautilusFile *file,
+ void (* remove_files) (NautilusFilesView *view,
+ GList *files,
NautilusDirectory *directory);
/* The 'file_changed' signal is emitted to signal a change in a file,