set_text


Description:

public void set_text (string? text)

Causes the given text to appear next to the progress bar.

If text is null and [[email protected]:show-text] is true, the current value of [[email protected]:fraction] will be displayed as a percentage.

If text is non-null and [[email protected]: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 [ [email protected]:show-text] is true.

Parameters:

this

a `GtkProgressBar`

text

a UTF-8 string




2022 vala-language.org