Gtk.Widget.prototype.set_tooltip_text
function set_tooltip_text(text:String):void {
// Gjs wrapper for gtk_widget_set_tooltip_text()
}Sets text as the contents of the tooltip. This function will take care of setting Gtk.has-tooltip to true and of the default handler for the Gtk.query-tooltip signal.
See also the Gtk.tooltip-text property and Gtk.Tooltip.prototype.set_text.
Since 2.12
- text
the contents of the tooltip for widget