Widget.setTooltipText

void setTooltipText(string text = null)

Sets text as the contents of the tooltip.

If text contains any markup, it will be escaped.

This function will take care of setting propertyGtk.Widget:has-tooltip as a side effect, and of the default handler for the signalGtk.Widget::query-tooltip signal.

See also [gtk.tooltip.Tooltip.setText].

Parameters

textthe contents of the tooltip for widget