- /* Update our activity step. */
- priv->activity_step = allocation.height * priv->pulse_fraction;
-
- size = MAX (2, allocation.height / priv->activity_blocks);
-
- if (priv->activity_dir == 0)
- {
- priv->activity_pos += priv->activity_step;
- if (priv->activity_pos + size >= allocation.height - padding.top)
- {
- priv->activity_pos = allocation.height - padding.top - size;
- priv->activity_dir = 1;
- }
- }
- else