Method

ClutterTextBufferset_text

Declaration [src]

void
clutter_text_buffer_set_text (
  ClutterTextBuffer* buffer,
  const gchar* chars,
  gint n_chars
)

Description [src]

Sets the text in the buffer.

This is roughly equivalent to calling clutter_text_buffer_delete_text() and clutter_text_buffer_insert_text().

Note that n_chars is in characters, not in bytes.

Available since:1.10

Parameters

chars const gchar*
 

The new text.

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

The number of characters in text, or -1