[gtk+] theme: Fix spinner for inactive state.
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] theme: Fix spinner for inactive state.
- Date: Sat, 5 Mar 2011 14:04:48 +0000 (UTC)
commit 8b17b16d63bebbf85fa211b192e0cdc669120ba2
Author: Benjamin Otte <otte redhat com>
Date: Sat Mar 5 15:01:19 2011 +0100
theme: Fix spinner for inactive state.
Previously, the inactive state caused the spinner's solid line to be
drawn to the right. Now it's drawn to the top instead, which makes the
inactive state look more natural.
gtk/gtkthemingengine.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index b6a0795..717d530 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -3004,8 +3004,8 @@ gtk_theming_engine_render_activity (GtkThemingEngine *engine,
/* transparency is a function of time and intial value */
gdouble t = 1.0 - (gdouble) ((i + step) % num_steps) / num_steps;
- gdouble xscale = cos (i * G_PI / half);
- gdouble yscale = - sin (i * G_PI / half);
+ gdouble xscale = - sin (i * G_PI / half);
+ gdouble yscale = - cos (i * G_PI / half);
cairo_set_source_rgba (cr,
color->red,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]