'Update value on the progress bar'

def on_timeout(self, user_data):

    if self.activity_mode:
        self.progressbar.pulse()
    else:
        new_value = (self.progressbar.get_fraction() + 0.01)
        if (new_value > 1):
            new_value = 0
        self.progressbar.set_fraction(new_value)
    return True
