This is a deprecated method that has had its usage replaced by set_percentage() when a progress bar is set to the percentage mode, or by set_value() when using the activity mode.