Gtk.TextBuffer.prototype.paste_clipboard
function paste_clipboard(clipboard:Gtk.Clipboard, override_location:Gtk.TextIter, default_editable:Boolean):void { // Gjs wrapper for gtk_text_buffer_paste_clipboard() }
Pastes the contents of a clipboard at the insertion point, or at override_location. (Note: pasting is asynchronous, that is, we'll ask for the paste data and return, and at some point later after the main loop runs, the paste data will be inserted.)
- clipboard
the Gtk.Clipboard to paste from
- override_location
location to insert pasted text, or null for at the cursor
- default_editable
whether the buffer is editable by default