selection_owner_set_for_display

function selection_owner_set_for_display(display:Gdk.Display, widget:Gtk.Widget, selection:Gdk.Atom, time_:guint32):Boolean {
    // Gjs wrapper for gtk_selection_owner_set_for_display()
}

Claim ownership of a given selection for a particular widget, or, if widget is null, release ownership of the selection.

Since 2.2

display

the Gdk.Display where the selection is set

widget

new selection owner (a Gtk.Widget), or null.

selection

an interned atom representing the selection to claim.

time_

timestamp with which to claim the selection

Returns

TRUE if the operation succeeded