summaryrefslogtreecommitdiff
path: root/src/nautilus-file.c
diff options
context:
space:
mode:
authorAntónio Fernandes <antoniof@gnome.org>2022-08-03 10:48:54 +0100
committerAntónio Fernandes <antoniof@gnome.org>2022-08-04 22:23:58 +0000
commit397bdbe818a78bf3de5536fb22864f368ccf6c28 (patch)
tree9c809b766e2f15c53b40b61d2d8356e00dbb3aa0 /src/nautilus-file.c
parentd7b03656210d5feb300d5df74db9cd4601306991 (diff)
downloadnautilus-397bdbe818a78bf3de5536fb22864f368ccf6c28.tar.gz
file: Drop folder-drag-accept icon usage
Problems: - Changing icon without animation is crude. - If the folder has a custom icon, it doesn't change, which is inconsistent - And archives, which can accept drops, don't change icon, which is inconsistent. We already have css styling for drop targets so, which suffices. As per design review in https://gitlab.gnome.org/GNOME/nautilus/-/issues/2347
Diffstat (limited to 'src/nautilus-file.c')
-rw-r--r--src/nautilus-file.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/nautilus-file.c b/src/nautilus-file.c
index e03d78f90..f6e2b5736 100644
--- a/src/nautilus-file.c
+++ b/src/nautilus-file.c
@@ -5064,8 +5064,7 @@ nautilus_file_get_gicon (NautilusFile *file,
{
icon = NULL;
- if (((flags & NAUTILUS_FILE_ICON_FLAGS_FOR_DRAG_ACCEPT) ||
- (flags & NAUTILUS_FILE_ICON_FLAGS_FOR_OPEN_FOLDER) ||
+ if (((flags & NAUTILUS_FILE_ICON_FLAGS_FOR_OPEN_FOLDER) ||
(flags & NAUTILUS_FILE_ICON_FLAGS_USE_MOUNT_ICON)) &&
G_IS_THEMED_ICON (file->details->icon))
{
@@ -5098,11 +5097,6 @@ nautilus_file_get_gicon (NautilusFile *file,
{
g_ptr_array_add (prepend_array, "folder-open");
}
- if (is_folder &&
- (flags & NAUTILUS_FILE_ICON_FLAGS_FOR_DRAG_ACCEPT))
- {
- g_ptr_array_add (prepend_array, "folder-drag-accept");
- }
if (prepend_array->len)
{