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




commit 1ea293518e84b617e786c2d84366511aa32d3a9a
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]