diff options
author | Benjamin Otte <otte@redhat.com> | 2018-06-26 04:13:24 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2018-06-26 04:14:25 +0200 |
commit | e7bb83988f5d8228819e83a023cdb24dc3132fb7 (patch) | |
tree | b2d56a4c46bb4ef1be63b13f29d50072affbc7f5 | |
parent | b9b62fca0c4c7cc1f498b712b21ac70180b1eaf9 (diff) | |
download | gtk+-e7bb83988f5d8228819e83a023cdb24dc3132fb7.tar.gz |
progressbar: Never stop never stopping
Reinstate code that was accidentally deleted during the port to
GtkProgressTracker in commit d57ebe2de7d.
Without that code, pulsing the progressbar will stop doing anything
after 3 iterations.
-rw-r--r-- | gtk/gtkprogressbar.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c index 90936b0a30..4cb8437ab4 100644 --- a/gtk/gtkprogressbar.c +++ b/gtk/gtkprogressbar.c @@ -1226,7 +1226,10 @@ tick_cb (GtkWidget *widget, priv->last_iteration = iteration; if (current_iterations > 3 * pulse_iterations) - return G_SOURCE_CONTINUE; + { + priv->pulse1 = 0; + return G_SOURCE_CONTINUE; + } /* advance the block */ if (priv->activity_dir == 0) |