Gtk.Widget.prototype.drag_source_add_text_targets

function drag_source_add_text_targets():void {
    // Gjs wrapper for gtk_drag_source_add_text_targets()
}

Add the text targets supported by #GtkSelection to the target list of the drag source. The targets are added with @info = 0. If you need another value, use Gtk.TargetList.prototype.add_text_targets and Gtk.drag_source_set_target_list.

Since 2.6