diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2012-09-10 13:15:25 -0400 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-09-17 20:39:13 +0200 |
commit | ebf9e9db4243b4c1b18a0bc414d24543fd9da558 (patch) | |
tree | 0ad940eacd33d23aa457c936e5cec5def42cf8ef /gtk/gtkthemingengine.c | |
parent | 7cf2adfec4ecdd881cb1c437bbc445138a871b81 (diff) | |
download | gtk+-ebf9e9db4243b4c1b18a0bc414d24543fd9da558.tar.gz |
themingengine: animate spinners again
Using the animation specified with CSS by the theme.
Diffstat (limited to 'gtk/gtkthemingengine.c')
-rw-r--r-- | gtk/gtkthemingengine.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c index e5012a9318..96f8eaf4c9 100644 --- a/gtk/gtkthemingengine.c +++ b/gtk/gtkthemingengine.c @@ -2644,13 +2644,18 @@ gtk_theming_engine_render_activity (GtkThemingEngine *engine, gdouble width, 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); } 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); } } |