Method

Gtk.TextBuffer.insert_with_tags

Declaration [src]

void
gtk_text_buffer_insert_with_tags (
  GtkTextBuffer* buffer,
  GtkTextIter* iter,
  const char* text,
  int len,
  GtkTextTag* first_tag,
  ...
)

Description [src]

Inserts text into buffer at iter, applying the list of tags to the newly-inserted text.

The last tag specified must be NULL to terminate the list. Equivalent to calling gtk_text_buffer_insert(), then gtk_text_buffer_apply_tag() on the inserted text; this is just a convenience function.

Parameters

iter GtkTextIter
 

an iterator in buffer

 Ownership is not transferred to the callee
text const char*
 

UTF-8 text

 Ownership is not transferred to the callee
 The string is a NUL terminated UTF-8 string
len int
 

length of text, or -1

first_tag GtkTextTag
 

first tag to apply to text

 Ownership is not transferred to the callee
...
 

NULL-terminated list of tags to apply