selection_owner_set

function selection_owner_set(widget:Gtk.Widget, selection:Gdk.Atom, time_:guint32):Boolean {
    // Gjs wrapper for gtk_selection_owner_set()
}

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

widget

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