insertInteractive

open fun insertInteractive(iter: TextIter, text: String, len: Int, defaultEditable: Boolean): Boolean

Inserts @text in @buffer.

Like method@Gtk.TextBuffer.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).

Return

whether text was actually inserted

Parameters

iter

a position in @buffer

text

some UTF-8 text

len

length of text in bytes, or -1

defaultEditable

default editability of buffer