Method

Gtk.TextBuffer.insert_range

Declaration [src]

void
gtk_text_buffer_insert_range (
  GtkTextBuffer* buffer,
  GtkTextIter* iter,
  const GtkTextIter* start,
  const GtkTextIter* end
)

Description [src]

Copies text, tags, and paintables between start and end and inserts the copy at iter.

The order of start and end doesn’t matter.

Used instead of simply getting/inserting text because it preserves images and tags. If start and end are in a different buffer from buffer, the two buffers must share the same tag table.

Implemented via emissions of the insert_text and apply_tag signals, so expect those.

Parameters

iter GtkTextIter
 

a position in buffer

 Ownership is not transferred to the callee
start GtkTextIter
 

a position in a GtkTextBuffer

 Ownership is not transferred to the callee
end GtkTextIter
 

another position in the same buffer as start

 Ownership is not transferred to the callee