diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-01-06 00:12:21 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-01-08 18:48:21 -0500 |
commit | e9067ae2db95a30a714efdec22de07debe5ca12d (patch) | |
tree | d0da62fc3b411aabf939c7a78d6b1191ce0fcec8 /tests/testnotebookdnd.c | |
parent | f898bee032040c17fe0282aa69cb54ef31f9d0ff (diff) | |
download | gtk+-e9067ae2db95a30a714efdec22de07debe5ca12d.tar.gz |
Replace gtk_drop_target_attach/detach
Since drop targets are now just event controller,
gtk_widget_add/remove_controller works just fine
for them.
Diffstat (limited to 'tests/testnotebookdnd.c')
-rw-r--r-- | tests/testnotebookdnd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testnotebookdnd.c b/tests/testnotebookdnd.c index 8cea384793..1f95172137 100644 --- a/tests/testnotebookdnd.c +++ b/tests/testnotebookdnd.c @@ -303,7 +303,7 @@ create_trash_button (void) targets = gdk_content_formats_new (button_targets, G_N_ELEMENTS (button_targets)); dest = gtk_drop_target_new (targets, GDK_ACTION_MOVE); g_signal_connect (dest, "drag-drop", G_CALLBACK (on_button_drag_drop), NULL); - gtk_drop_target_attach (dest, button); + gtk_widget_add_controller (button, GTK_EVENT_CONTROLLER (dest)); gdk_content_formats_unref (targets); return button; |