Package: gtk

Accessor gtk:progress-bar-text

Lambda List

gtk:progress-bar-text (object)

Syntax

(gtk:progress-bar-text object) => text
(setf (gtk:progress-bar-text object) text)

Arguments

object -- a gtk:progress-bar widget
text -- a UTF-8 string

Details

The accessor for the text slot of the gtk:progress-bar class gets or sets the text displayed superimposed on the progress bar. If the text argument is nil and the show-text property is true, the current value of the fraction property will be displayed as a percentage.

If the text argument is non-nil and the show-text property 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 the show-text property is true.
 

See also

2025-08-04