[gtk/gtk-3-24] progressbar: Never stop never stopping
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24] progressbar: Never stop never stopping
- Date: Tue, 26 Jun 2018 02:21:09 +0000 (UTC)
commit e7bb83988f5d8228819e83a023cdb24dc3132fb7
Author: Benjamin Otte <otte redhat com>
Date: Tue Jun 26 04:13:24 2018 +0200
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.
gtk/gtkprogressbar.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]