Method

GtkWidgetset_tooltip_text

Declaration [src]

void
gtk_widget_set_tooltip_text (
  GtkWidget* widget,
  const gchar* text
)

Description [src]

Sets text as the contents of the tooltip. This function will take care of setting GtkWidget:has-tooltip to TRUE and of the default handler for the GtkWidget::query-tooltip signal.

See also the GtkWidget:tooltip-text property and gtk_tooltip_set_text().

Available since:2.12

Parameters

text const gchar*
 

The contents of the tooltip for widget.

 The argument can be NULL.
 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.