pathbar: Use gtk_widget_add_controller for drag source

This commit is contained in:
Matthias Clasen 2020-01-07 01:08:51 -05:00
parent 4630dd8d68
commit 134fca47e3

View File

@ -1370,7 +1370,7 @@ make_directory_button (GtkPathBar *path_bar,
content = gdk_content_provider_new_for_value (&value);
gtk_drag_source_set_content (source, content);
g_object_unref (content);
gtk_drag_source_attach (source, button_data->button, GDK_BUTTON1_MASK);
gtk_widget_add_controller (button_data->button, GTK_EVENT_CONTROLLER (source));
g_value_unset (&value);
return button_data;