Virtual Method

GtkEditableinsert_text

Declaration [src]

void
insert_text (
  GtkEditable* editable,
  const gchar* new_text,
  gint new_text_length,
  gint* position
)

Description [src]

Inserts new_text_length bytes of new_text into the contents of the widget, at position position.

Note that the position is in characters, not in bytes. The function updates position to point after the newly inserted text.

Parameters

new_text

Type: const gchar*

The text to append.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
new_text_length

Type: gint

The length of the text in bytes, or -1.

position

Type: gint*

Location of the position text will be inserted at.

The argument will be modified by the function.