summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnestas Kulik <ekulik@redhat.com>2018-12-16 18:19:34 +0100
committerAntónio Fernandes <antoniof@gnome.org>2021-08-15 21:21:07 +0100
commit1ea293518e84b617e786c2d84366511aa32d3a9a (patch)
treeaff6843c6cac54679be52e7578efe115d481b4b8
parent6cc64ac4fe93936de0652992189e016bb47f7b4c (diff)
downloadnautilus-1ea293518e84b617e786c2d84366511aa32d3a9a.tar.gz
files-view-dnd: Drop GDK_ACTION_DEFAULT
It’s gone in GTK4, and its use has been discouraged in GTK3. Rebased and ammended by António Fernandes <antoniof@gnome.org>
-rw-r--r--src/nautilus-files-view-dnd.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/nautilus-files-view-dnd.c b/src/nautilus-files-view-dnd.c
index d5b4c21c8..485a7661f 100644
--- a/src/nautilus-files-view-dnd.c
+++ b/src/nautilus-files-view-dnd.c
@@ -86,11 +86,7 @@ nautilus_files_view_handle_netscape_url_drop (NautilusFilesView *view,
f = g_file_new_for_uri (url);
- /* We don't support GDK_ACTION_ASK or GDK_ACTION_PRIVATE
- * and we don't support combinations either. */
- if ((action != GDK_ACTION_DEFAULT) &&
- (action != GDK_ACTION_COPY) &&
- (action != GDK_ACTION_MOVE))
+ if ((action != GDK_ACTION_COPY) && (action != GDK_ACTION_MOVE))
{
show_dialog (_("Drag and drop is not supported."),
_("An invalid drag type was used."),
@@ -147,10 +143,7 @@ nautilus_files_view_handle_uri_list_drop (NautilusFilesView *view,
}
}
- /* We don't support GDK_ACTION_ASK or GDK_ACTION_PRIVATE
- * and we don't support combinations either. */
- if ((action != GDK_ACTION_DEFAULT) &&
- (action != GDK_ACTION_COPY) &&
+ if ((action != GDK_ACTION_COPY) &&
(action != GDK_ACTION_MOVE) &&
(action != GDK_ACTION_LINK))
{