[nautilus/wip/corey/dnd_features: 5/13] dnd: Allow dropping to starred directory
- From: Corey Berla <coreyberla src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/corey/dnd_features: 5/13] dnd: Allow dropping to starred directory
- Date: Thu, 1 Sep 2022 20:32:46 +0000 (UTC)
commit f6abc827f867379a51d0d9b5f2909bf41f391c80
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 9ba3e0c99..c110917f6 100644
--- a/src/gtk/nautilusgtkplacessidebar.c
+++ b/src/gtk/nautilusgtkplacessidebar.c
@@ -1497,12 +1497,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 b6a87a1ba..6c2522318 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]