summaryrefslogtreecommitdiff
path: root/gtk/gtkcssanimatedstyle.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-05-06 11:40:52 +0200
committerTimm Bäder <mail@baedert.org>2020-05-10 08:44:20 +0200
commit06460ea50ca611a67c28f9e7ee1b4dba7b8f2aa5 (patch)
treec2835a33a21f0ae114f72e0a8a531e0071ff5d84 /gtk/gtkcssanimatedstyle.c
parente12c9de5dfd5b9ed0098650c516f4fed1653f423 (diff)
downloadgtk+-06460ea50ca611a67c28f9e7ee1b4dba7b8f2aa5.tar.gz
css: Drop a few dynamic type checks
We hit these code paths a lot
Diffstat (limited to 'gtk/gtkcssanimatedstyle.c')
-rw-r--r--gtk/gtkcssanimatedstyle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcssanimatedstyle.c b/gtk/gtkcssanimatedstyle.c
index d67bb9f191..c04f040b0b 100644
--- a/gtk/gtkcssanimatedstyle.c
+++ b/gtk/gtkcssanimatedstyle.c
@@ -53,7 +53,7 @@ gtk_css_animated_style_get_section (GtkCssStyle *style,
static gboolean
gtk_css_animated_style_is_static (GtkCssStyle *style)
{
- GtkCssAnimatedStyle *animated = GTK_CSS_ANIMATED_STYLE (style);
+ GtkCssAnimatedStyle *animated = (GtkCssAnimatedStyle *)style;
guint i;
for (i = 0; i < animated->n_animations; i ++)