From 04c5fdaca675e324ca3c5fab0c4fac4b579d0d41 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 4 Apr 2012 18:55:51 +0200 Subject: css: Remove old animation code Deprecate public API where appropriate and make it no-ops. Remove all calls to it. Get rid of the 'transition' css property. For now, this means spinners don't animate anymore. --- gtk/gtkcssstylefuncs.c | 42 ------------------------------------------ 1 file changed, 42 deletions(-) (limited to 'gtk/gtkcssstylefuncs.c') diff --git a/gtk/gtkcssstylefuncs.c b/gtk/gtkcssstylefuncs.c index 2105d5aa9e..3315fbfdbc 100644 --- a/gtk/gtkcssstylefuncs.c +++ b/gtk/gtkcssstylefuncs.c @@ -27,7 +27,6 @@ #include #include -#include "gtkanimationdescription.h" #include "gtkcssimagegradientprivate.h" #include "gtkcssprovider.h" #include "gtkcssrgbavalueprivate.h" @@ -602,43 +601,6 @@ theming_engine_value_print (const GValue *value, } } -static gboolean -animation_description_value_parse (GtkCssParser *parser, - GFile *base, - GValue *value) -{ - GtkAnimationDescription *desc; - char *str; - - str = _gtk_css_parser_read_value (parser); - if (str == NULL) - return FALSE; - - desc = _gtk_animation_description_from_string (str); - g_free (str); - - if (desc == NULL) - { - _gtk_css_parser_error (parser, "Invalid animation description"); - return FALSE; - } - - g_value_take_boxed (value, desc); - return TRUE; -} - -static void -animation_description_value_print (const GValue *value, - GString *string) -{ - GtkAnimationDescription *desc = g_value_get_boxed (value); - - if (desc == NULL) - g_string_append (string, "none"); - else - _gtk_animation_description_print (desc, string); -} - static gboolean border_value_parse (GtkCssParser *parser, GFile *base, @@ -1038,10 +1000,6 @@ gtk_css_style_funcs_init (void) theming_engine_value_parse, theming_engine_value_print, NULL); - register_conversion_function (GTK_TYPE_ANIMATION_DESCRIPTION, - animation_description_value_parse, - animation_description_value_print, - NULL); register_conversion_function (GTK_TYPE_BORDER, border_value_parse, border_value_print, -- cgit v1.2.1