Package: gtk
Function gtk:text-buffer-insert
Lambda Listgtk:text-buffer-insert (buffer text &key position interactive editable) SyntaxArgumentsReturn ValueThe boolean whether the text was actually inserted. Details
Inserts text in the text buffer. If the position keyword argument has the :cursor value, the default, inserts the text using the current cursor position as the insertion point. If the interactive keyword argument is true, the insertion will not occur if the iterator is at a non-editable location in the text buffer. Usually you want to prevent insertions at ineditable locations if the insertion results from a user action (is interactive). The editable keyword argument indicates the editability of text that does not have a tag affecting editability applied to it. Typically the result of the gtk:text-view-editable function is appropriate here. Emits the "insert-text" signal. Insertion actually occurs in the default handler for the signal. The iterator is invalidated when insertion occurs, because the text buffer contents change, but the default signal handler revalidates it to point to the end of the inserted text. Notes | See also |
#2023-3-7