Method

GtkTextBufferinsert_pixbuf

Declaration [src]

void
gtk_text_buffer_insert_pixbuf (
  GtkTextBuffer* buffer,
  GtkTextIter* iter,
  GdkPixbuf* pixbuf
)

Description [src]

Inserts an image into the text buffer at iter. The image 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 pixbufs, but the “text” variants do not. e.g. see gtk_text_buffer_get_slice() and gtk_text_buffer_get_text().

Parameters

iter

Type: GtkTextIter

Location to insert the pixbuf.

The data is owned by the caller of the function.
pixbuf

Type: GdkPixbuf

A GdkPixbuf.

The data is owned by the caller of the function.