Gtk.TextBuffer.prototype.insert_interactive
function insert_interactive(iter:Gtk.TextIter, text:String, len:Number, default_editable:Boolean):Boolean { // Gjs wrapper for gtk_text_buffer_insert_interactive() }
Like Gtk.TextBuffer.prototype.insert, but the insertion will not occur if iter is at a non-editable location in the buffer. Usually you want to prevent insertions at ineditable locations if the insertion results from a user action (is interactive).
default_editable indicates the editability of text that doesn't have a tag affecting editability applied to it. Typically the result of Gtk.get_editable is appropriate here.
- iter
a position in buffer
- text
some UTF-8 text
- len
length of text in bytes, or -1
- default_editable
default editability of buffer
- Returns
whether text was actually inserted