TextBuffer.insertInteractive
bool insertInteractive(gtk.text_iter.TextIter iter, string text, bool defaultEditable)Like [gtk.text_buffer.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).
default_editable indicates the editability of text that doesn't have a tag affecting editability applied to it. Typically the result of [gtk.text_view.TextView.getEditable] is appropriate here.
Parameters
iter | a position in buffer |
text | some UTF-8 text |
defaultEditable | default editability of buffer |
Returns
whether text was actually inserted