summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Sullivan <sullivan@src.gnome.org>2001-03-09 02:36:21 +0000
committerJohn Sullivan <sullivan@src.gnome.org>2001-03-09 02:36:21 +0000
commitfdf973e37e0920f537c794e81f63db4c28d4abb9 (patch)
treeb6c41f067525f693a9e51c6bcde1856339e605f8
parentdad99d7dd3cf0f16772413b447b921af718d5103 (diff)
downloadnautilus-fdf973e37e0920f537c794e81f63db4c28d4abb9.tar.gz
fix by: Andy Hertzfeld <andy@eazel.com>
reviewed by: Darin Adler <darin@eazel.com> Fixed bug 7580 (Throbber flashing constantly when animating) * components/throbber/nautilus-throbber.c: (draw_throbber_image): Only clear the gdk window once per cycle, instead of for every frame.
-rw-r--r--ChangeLog10
-rw-r--r--components/throbber/nautilus-throbber.c8
2 files changed, 16 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 0559cc7f7..ac76570e5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2001-03-08 John Sullivan <sullivan@eazel.com>
+
+ fix by: Andy Hertzfeld <andy@eazel.com>
+ reviewed by: Darin Adler <darin@eazel.com>
+
+ Fixed bug 7580 (Throbber flashing constantly when animating)
+
+ * components/throbber/nautilus-throbber.c: (draw_throbber_image):
+ Only clear the gdk window once per cycle, instead of for every frame.
+
2001-03-08 Robey Pointer <robey@eazel.com>
reviewed by: Eskil Heyn Olsen <eskil@eazel.com>
diff --git a/components/throbber/nautilus-throbber.c b/components/throbber/nautilus-throbber.c
index 806ec864e..cdc636f2a 100644
--- a/components/throbber/nautilus-throbber.c
+++ b/components/throbber/nautilus-throbber.c
@@ -366,13 +366,17 @@ draw_throbber_image (GtkWidget *widget, GdkRectangle *box)
}
/* clear the entire gdk window to avoid messing up gradient themes due to bonobo bug */
+ /* only do this once per cycle to minimize flashing */
gdk_window_get_size (widget->window, &window_width, &window_height);
- gdk_window_clear_area (widget->window,
+
+ if (throbber->details->current_frame == 0) {
+ gdk_window_clear_area (widget->window,
0,
0,
window_width,
window_height);
-
+ }
+
pixbuf = select_throbber_image (throbber);
/* center the throbber image in the gdk window */