Next: , Previous: GtkCellRendererPixbuf, Up: Top


48 GtkCellRendererProgress

Renders numbers as progress bars

48.1 Overview

<gtk-cell-renderer-progress> renders a numeric value as a progress par in a cell. Additionally, it can display a text on top of the progress bar.

The <gtk-cell-renderer-progress> cell renderer was added in GTK+ 2.6.

48.2 Usage

— Class: <gtk-cell-renderer-progress>

Derives from <gtk-cell-renderer>.

This class defines the following slots:

value
Value of the progress bar
text
Text on the progress bar
pulse
Set this to positive values to indicate that some progress is made, but you don't know how much.
text-xalign
The horizontal text alignment, from 0 (left) to 1 (right). Reversed for RTL layouts.
text-yalign
The vertical text alignment, from 0 (top) to 1 (bottom).
orientation
Orientation and growth direction of the progress bar
— Function: gtk-cell-renderer-progress-new ⇒  (ret <gtk-cell-renderer>)

Creates a new <gtk-cell-renderer-progress>.

ret
the new cell renderer

Since 2.6