Method

GtkEntryBufferset_text

since: 2.18

Declaration [src]

void
gtk_entry_buffer_set_text (
  GtkEntryBuffer* buffer,
  const gchar* chars,
  gint n_chars
)

Description [src]

Sets the text in the buffer.

This is roughly equivalent to calling gtk_entry_buffer_delete_text() and gtk_entry_buffer_insert_text().

Note that n_chars is in characters, not in bytes.

Available since: 2.18

Sets propertyGtk.EntryBuffer:text

Parameters

chars

Type: const gchar*

The new text.

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

Type: gint

The number of characters in text, or -1.