EntryBuffer.setText

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.

class EntryBuffer
void
setText
(
string chars
,
int nChars
)

Parameters

chars string

the new text

nChars int

the number of characters in @text, or -1

Meta

Since

2.18