summaryrefslogtreecommitdiff
path: root/gtk/gtkcsstransientnode.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-02-22 08:23:04 +0100
committerBenjamin Otte <otte@redhat.com>2015-03-18 15:23:32 +0100
commit6dd19306eb982597fcf8e9d809128cef5c952dd3 (patch)
tree05c21d7b10e460d551eb78e89ff11de1cc659402 /gtk/gtkcsstransientnode.c
parentf43543165be4aa3a0732bcbd01559bb21e1f72b1 (diff)
downloadgtk+-6dd19306eb982597fcf8e9d809128cef5c952dd3.tar.gz
cssnode: Create animated styles by default
... and hardcode transient and path nodes to never create animated styles.
Diffstat (limited to 'gtk/gtkcsstransientnode.c')
-rw-r--r--gtk/gtkcsstransientnode.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk/gtkcsstransientnode.c b/gtk/gtkcsstransientnode.c
index e3d68b4149..a8485f0858 100644
--- a/gtk/gtkcsstransientnode.c
+++ b/gtk/gtkcsstransientnode.c
@@ -52,6 +52,16 @@ gtk_css_transient_node_get_widget_path (GtkCssNode *node)
return gtk_css_node_get_widget_path (parent);
}
+static GtkCssStyle *
+gtk_css_transient_node_update_style (GtkCssNode *cssnode,
+ GtkCssChange change,
+ gint64 timestamp,
+ GtkCssStyle *style)
+{
+ /* This should get rid of animations */
+ return GTK_CSS_NODE_CLASS (gtk_css_transient_node_parent_class)->update_style (cssnode, change, 0, style);
+}
+
static void
gtk_css_transient_node_class_init (GtkCssTransientNodeClass *klass)
{
@@ -59,6 +69,7 @@ gtk_css_transient_node_class_init (GtkCssTransientNodeClass *klass)
node_class->create_widget_path = gtk_css_transient_node_create_widget_path;
node_class->get_widget_path = gtk_css_transient_node_get_widget_path;
+ node_class->update_style = gtk_css_transient_node_update_style;
}
static void