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>
This commit is contained in:
Ernestas Kulik 2018-12-16 18:19:34 +01:00 committed by Ondrej Holy
parent 49ec3bd2c5
commit 8576d45c59

View file

@ -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))
{