[nautilus/wip/antoniof/gtk4-preparation-drop-outgoing-api: 6/22] files-view-dnd: Drop GDK_ACTION_DEFAULT




commit 3a2264c9229b4118f3e5a7da41a6c55c4d0d2c4e
Author: Ernestas Kulik <ekulik redhat com>
Date:   Sun Dec 16 18:19:34 2018 +0100

    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>

 src/nautilus-files-view-dnd.c | 11 ++---------
 1 file 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))
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]