diff options
author | Benjamin Otte <otte@redhat.com> | 2015-02-20 17:36:10 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-03-18 15:23:32 +0100 |
commit | 2ec26cd9b5a628b128fa6264ff43d27f6b4ca1ea (patch) | |
tree | 219bd2b09c1e946da8b411ca926ee4790b001f41 /gtk/gtkstylecontext.c | |
parent | 4b2cdb37fb9f1d69f0ec5ea82e6a7dbf23aa3e6e (diff) | |
download | gtk+-2ec26cd9b5a628b128fa6264ff43d27f6b4ca1ea.tar.gz |
cssnode: Move style context function to only user
Diffstat (limited to 'gtk/gtkstylecontext.c')
-rw-r--r-- | gtk/gtkstylecontext.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index 33e56ee58b..d1ae36971f 100644 --- a/gtk/gtkstylecontext.c +++ b/gtk/gtkstylecontext.c @@ -2424,36 +2424,6 @@ gtk_style_context_do_invalidate (GtkStyleContext *context, priv->invalidating_context = NULL; } -gboolean -gtk_style_context_should_create_transitions (GtkStyleContext *context, - GtkCssStyle *previous_style) -{ - GtkStyleContextPrivate *priv; - GtkWidget *widget; - gboolean animate; - - priv = context->priv; - - if (GTK_IS_CSS_WIDGET_NODE (priv->cssnode)) - return FALSE; - - widget = gtk_css_widget_node_get_widget (GTK_CSS_WIDGET_NODE (priv->cssnode)); - if (widget == NULL) - return FALSE; - - if (!gtk_widget_get_mapped (widget)) - return FALSE; - - if (previous_style == gtk_css_static_style_get_default ()) - return FALSE; - - g_object_get (gtk_widget_get_settings (widget), - "gtk-enable-animations", &animate, - NULL); - - return animate; -} - void gtk_style_context_validate (GtkStyleContext *context, const GtkBitmask *changes) |