Package: gtk

Function gtk-text-buffer-insert-child-anchor

Lambda List

gtk-text-buffer-insert-child-anchor (buffer position &optional anchor)

Arguments

buffer -- a gtk-text-buffer object
iter -- location to insert the anchor
anchor -- a gtk-text-child-anchor object

Details

Inserts a child widget anchor into the text buffer at iter. The anchor will be counted as one character in character counts, and when obtaining the buffer contents as a string, will be represented by the Unicode "object replacement character" 0xFFFC. Note that the "slice" variants for obtaining portions of the buffer as a string include this character for child anchors, but the "text" variants do not. E. g. see the functions gtk-text-buffer-get-slice and gtk-text-buffer-get-text. Consider the function gtk-text-buffer-create-child-anchor as a more convenient alternative to this function. The buffer will add a reference to the anchor, so you can unref it after insertion.
 

See also

2013-5-5