summaryrefslogtreecommitdiff
path: root/src/nautilus-throbber.c
diff options
context:
space:
mode:
authorAndy Hertzfeld <andy@src.gnome.org>2000-10-03 01:36:44 +0000
committerAndy Hertzfeld <andy@src.gnome.org>2000-10-03 01:36:44 +0000
commitd226b053a64547c06391a1ab8d954f4c7e0c10db (patch)
tree690929dbc2a0eabf167ec931e3a17cb315130c35 /src/nautilus-throbber.c
parentd78afbc31c6c9e3ce40e7d866e60cf7c7cef3b18 (diff)
downloadnautilus-d226b053a64547c06391a1ab8d954f4c7e0c10db.tar.gz
made some throbber changes for Arlo: put the throbber into a gtk frame and
made some throbber changes for Arlo: put the throbber into a gtk frame and reset the frame count each time it's started.
Diffstat (limited to 'src/nautilus-throbber.c')
-rw-r--r--src/nautilus-throbber.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nautilus-throbber.c b/src/nautilus-throbber.c
index 461346a45..e03300caf 100644
--- a/src/nautilus-throbber.c
+++ b/src/nautilus-throbber.c
@@ -271,8 +271,8 @@ bump_throbber_frame (NautilusThrobber *throbber)
throbber->details->current_frame += 1;
if (throbber->details->current_frame > throbber->details->max_frame) {
throbber->details->current_frame = 0;
- }
-
+ }
+
gtk_widget_queue_draw (GTK_WIDGET (throbber));
return TRUE;
}
@@ -285,7 +285,9 @@ nautilus_throbber_start (NautilusThrobber *throbber)
{
if (throbber->details->timer_task != -1)
gtk_timeout_remove(throbber->details->timer_task);
-
+
+ /* reset the frame count */
+ throbber->details->current_frame = 0;
throbber->details->timer_task = gtk_timeout_add (THROBBER_TIMEOUT, (GtkFunction) bump_throbber_frame, throbber);
}