Gtk.SelectionData.prototype.set_text

function set_text(str:String, len:Number):Boolean {
    // Gjs wrapper for gtk_selection_data_set_text()
}

Sets the contents of the selection from a UTF-8 encoded string. The string is converted to the form determined by selection_data->target.

str

a UTF-8 string

len

the length of str, or -1 if str is nul-terminated.

Returns

true if the selection was successfully set, otherwise false.