Package: gtk

Function gtk-text-iter-editable

Lambda List

gtk-text-iter-editable (iter setting)

Arguments

iter -- a gtk-text-iter instance
setting -- true if text is editable by default

Return Value

A boolean whether the iterator is inside an editable range.

Details

Returns whether the character at the iterator is within an editable region of text. Non-editable text is "locked" and cannot be changed by the user via the gtk-text-view widget. This function is simply a convenience wrapper around the function gtk-text-iter-attributes. If no tags applied to this text affect editability, setting will be returned.

You do not want to use this function to decide whether text can be inserted at the iterator, because for insertion you do not want to know whether the char at the iterator is inside an editable range, you want to know whether a new character inserted at the iterator would be inside an editable range. Use the function gtk-text-iter-can-insert to handle this case.
 

See also

2021-6-13