Gtk.Tooltip.prototype.set_text

function set_text(text:String):void {
    // Gjs wrapper for gtk_tooltip_set_text()
}

Sets the text of the tooltip to be text. If text is null, the label will be hidden. See also Gtk.Tooltip.prototype.set_markup.

Since 2.12

text

a text string or null