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

itera position in buffer
textsome UTF-8 text
defaultEditabledefault editability of buffer

Returns

whether text was actually inserted