summaryrefslogtreecommitdiff
path: root/gtk/gtkcssshadowvalue.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-01-19 17:41:29 +0100
committerBenjamin Otte <otte@redhat.com>2015-01-20 06:30:19 +0100
commite697213b35e6fe2bf1bea6b6d51607c1a7241bc1 (patch)
tree0cca1a4426f4777c2b9b0239f4fbd57ba966b93c /gtk/gtkcssshadowvalue.c
parentcc4d34e6884b958505dfd888d9b53b4b39084581 (diff)
downloadgtk+-e697213b35e6fe2bf1bea6b6d51607c1a7241bc1.tar.gz
render: Remove spinner special-cases
The spinner is a regular builtin image now. There is no need to go through the shadows code manually anymore as regular items do get shadows automatically. This also allows simplifying the actual spinner drawing code so that it actually works.
Diffstat (limited to 'gtk/gtkcssshadowvalue.c')
-rw-r--r--gtk/gtkcssshadowvalue.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/gtk/gtkcssshadowvalue.c b/gtk/gtkcssshadowvalue.c
index b5c423348c..d7f3963200 100644
--- a/gtk/gtkcssshadowvalue.c
+++ b/gtk/gtkcssshadowvalue.c
@@ -542,29 +542,6 @@ _gtk_css_shadow_value_paint_icon (const GtkCssValue *shadow,
cairo_pattern_destroy (pattern);
}
-void
-_gtk_css_shadow_value_paint_spinner (const GtkCssValue *shadow,
- cairo_t *cr,
- gdouble radius,
- gdouble progress)
-{
- g_return_if_fail (shadow->class == &GTK_CSS_VALUE_SHADOW);
-
- cairo_save (cr);
-
- gdk_cairo_set_source_rgba (cr, _gtk_css_rgba_value_get_rgba (shadow->color));
- cr = gtk_css_shadow_value_start_drawing (shadow, cr);
-
- cairo_translate (cr,
- _gtk_css_number_value_get (shadow->hoffset, 0),
- _gtk_css_number_value_get (shadow->voffset, 0));
- gtk_render_paint_spinner (cr, radius, progress);
-
- cr = gtk_css_shadow_value_finish_drawing (shadow, cr);
-
- cairo_restore (cr);
-}
-
gboolean
_gtk_css_shadow_value_get_inset (const GtkCssValue *shadow)
{