[nautilus/wip/corey/dnd_features: 72/80] dnd: Allow dropping to starred directory
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/corey/dnd_features: 72/80] dnd: Allow dropping to starred directory
- Date: Thu, 1 Sep 2022 21:42:44 +0000 (UTC)
commit a88ad1e3e36bd85bc6139cf8c398fdc79819941f
Author: Corey Berla <corey berla me>
Date: Thu Sep 1 13:17:07 2022 -0700
dnd: Allow dropping to starred directory
src/gtk/nautilusgtkplacessidebar.c | 6 ------
src/nautilus-dnd.c | 4 ++++
2 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/gtk/nautilusgtkplacessidebar.c b/src/gtk/nautilusgtkplacessidebar.c
index 792afea53..f7da8ea75 100644
--- a/src/gtk/nautilusgtkplacessidebar.c
+++ b/src/gtk/nautilusgtkplacessidebar.c
@@ -1502,12 +1502,6 @@ check_valid_drop_target (NautilusGtkPlacesSidebar *sidebar,
"file", &dest_file,
NULL);
- if (place_type == NAUTILUS_GTK_PLACES_STARRED_LOCATION)
- {
- g_free (uri);
- return FALSE;
- }
-
if (place_type == NAUTILUS_GTK_PLACES_CONNECT_TO_SERVER)
{
g_free (uri);
diff --git a/src/nautilus-dnd.c b/src/nautilus-dnd.c
index 7df392037..5d16e4c77 100644
--- a/src/nautilus-dnd.c
+++ b/src/nautilus-dnd.c
@@ -174,6 +174,10 @@ nautilus_dnd_get_preferred_action (NautilusFile *target_file,
{
return GDK_ACTION_COPY;
}
+ else if (nautilus_file_is_starred_location (target_file))
+ {
+ return GDK_ACTION_COPY;
+ }
else if (!nautilus_file_is_directory (target_file) ||
!nautilus_file_can_write (target_file))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]