Method

Gtk.Text.set_placeholder_text

Declaration [src]

void
gtk_text_set_placeholder_text (
  GtkText* self,
  const char* text
)

Description [src]

Sets text to be displayed in self when it is empty.

This can be used to give a visual hint of the expected contents of the GtkText.

Parameters

text const char*
 

a string to be displayed when self is empty and unfocused, or NULL

 Can be NULL
 Ownership is not transferred to the callee
 The string is a NUL terminated UTF-8 string