[gtk+] theme: Remove unnecessary save/restore in spinner code
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] theme: Remove unnecessary save/restore in spinner code
- Date: Sat, 5 Mar 2011 14:04:18 +0000 (UTC)
commit 639bf2a2a5011678f6175af8264803ceaa2f81d0
Author: Benjamin Otte <otte redhat com>
Date: Sat Mar 5 14:46:36 2011 +0100
theme: Remove unnecessary save/restore in spinner code
gtk/gtkthemingengine.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index 0ab13a4..edd3a60 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -3007,8 +3007,6 @@ gtk_theming_engine_render_activity (GtkThemingEngine *engine,
gdouble t = (gdouble) ((i + num_steps - step)
% num_steps) / num_steps;
- cairo_save (cr);
-
cairo_set_source_rgba (cr,
color->red,
color->green,
@@ -3023,8 +3021,6 @@ gtk_theming_engine_render_activity (GtkThemingEngine *engine,
radius * cos (i * G_PI / half),
radius * sin (i * G_PI / half));
cairo_stroke (cr);
-
- cairo_restore (cr);
}
cairo_restore (cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]