[gtk: 1/2] make testdnd trashcan work again




commit bbf7454fc97a3eb5a3d7e1d26b4b267089a47f5f
Author: Caolán McNamara <caolanm redhat com>
Date:   Wed Jun 23 15:09:44 2021 +0100

    make testdnd trashcan work again
    
    so that dragging into the 'trashcan' is detected

 tests/testdnd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/testdnd.c b/tests/testdnd.c
index ea6e468e38..471ab2cab9 100644
--- a/tests/testdnd.c
+++ b/tests/testdnd.c
@@ -559,7 +559,7 @@ main (int argc, char **argv)
   gtk_grid_attach (GTK_GRID (grid), label, 1, 1, 1, 1);
 
   pixmap = gtk_image_new_from_pixbuf (trashcan_closed);
-  async = gtk_drop_target_async_new (NULL, 0);
+  async = gtk_drop_target_async_new (NULL, GDK_ACTION_ALL);
   g_signal_connect (async, "drag-enter", G_CALLBACK (trash_drag_enter), pixmap);
   g_signal_connect (async, "drag-leave", G_CALLBACK (trash_drag_leave), pixmap);
   g_signal_connect (async, "drop", G_CALLBACK (trash_drag_drop), pixmap);


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