Gtk.ProgressBar.prototype.set_text
function set_text(text:String):void {
// Gjs wrapper for gtk_progress_bar_set_text()
}Causes the given text to appear superimposed on the progress bar.
If text is null and Gtk.show-text is true, the current value of Gtk.fraction will be displayed as a percentage.
If text is non-null and Gtk.show-text is true, the text will be displayed. In this case, it will not display the progress percentage. If text is the empty string, the progress bar will still be styled and sized suitably for containing text, as long as Gtk.show-text is true.
- text
a UTF-8 string, or null