themingengine: animate spinners again

Using the animation specified with CSS by the theme.
This commit is contained in:
Cosimo Cecchi 2012-09-10 13:15:25 -04:00 committed by Benjamin Otte
parent 7cf2adfec4
commit ebf9e9db42

View File

@ -2644,13 +2644,18 @@ gtk_theming_engine_render_activity (GtkThemingEngine *engine,
gdouble width, gdouble width,
gdouble height) gdouble height)
{ {
if (gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_SPINNER)) GtkThemingBackground bg;
_gtk_theming_background_init (&bg, engine, x, y, width, height, 0);
if (gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_SPINNER) &&
!_gtk_theming_background_has_background_image (&bg))
{ {
render_spinner (engine, cr, x, y, width, height); render_spinner (engine, cr, x, y, width, height);
} }
else else
{ {
gtk_theming_engine_render_background (engine, cr, x, y, width, height); _gtk_theming_background_render (&bg, cr);
gtk_theming_engine_render_frame (engine, cr, x, y, width, height); gtk_theming_engine_render_frame (engine, cr, x, y, width, height);
} }
} }