mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-10-02 22:13:39 +00:00
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:
parent
49ec3bd2c5
commit
8576d45c59
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue