summaryrefslogtreecommitdiff
path: root/gtk/gtkcssstylepropertyimpl.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-04-04 18:55:51 +0200
committerBenjamin Otte <otte@redhat.com>2012-04-17 08:59:19 +0200
commit04c5fdaca675e324ca3c5fab0c4fac4b579d0d41 (patch)
treefc54880e3b04cfd48d5b5abc81cf36f490a08b43 /gtk/gtkcssstylepropertyimpl.c
parentdcd54e20d14be57a9d080e87a47bbef8d2271c05 (diff)
downloadgtk+-04c5fdaca675e324ca3c5fab0c4fac4b579d0d41.tar.gz
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.
Diffstat (limited to 'gtk/gtkcssstylepropertyimpl.c')
-rw-r--r--gtk/gtkcssstylepropertyimpl.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/gtk/gtkcssstylepropertyimpl.c b/gtk/gtkcssstylepropertyimpl.c
index dab9abd499..2f365ead22 100644
--- a/gtk/gtkcssstylepropertyimpl.c
+++ b/gtk/gtkcssstylepropertyimpl.c
@@ -38,7 +38,6 @@
#include "fallback-c89.c"
/* the actual parsers we have */
-#include "gtkanimationdescription.h"
#include "gtkbindings.h"
#include "gtkcssarrayvalueprivate.h"
#include "gtkcssbgsizevalueprivate.h"
@@ -114,21 +113,6 @@ gtk_css_style_property_register (const char * name,
/*** IMPLEMENTATIONS ***/
static void
-query_simple (GtkCssStyleProperty *property,
- const GtkCssValue *css_value,
- GValue *value)
-{
- _gtk_css_value_init_gvalue (css_value, value);
-}
-
-static GtkCssValue *
-assign_simple (GtkCssStyleProperty *property,
- const GValue *value)
-{
- return _gtk_css_value_new_from_gvalue (value);
-}
-
-static void
query_length_as_int (GtkCssStyleProperty *property,
const GtkCssValue *css_value,
GValue *value)
@@ -817,27 +801,6 @@ engine_assign (GtkCssStyleProperty *property,
}
static GtkCssValue *
-transition_parse (GtkCssStyleProperty *property,
- GtkCssParser *parser,
- GFile *base)
-{
- GValue value = G_VALUE_INIT;
- GtkCssValue *result;
-
- g_value_init (&value, GTK_TYPE_ANIMATION_DESCRIPTION);
- if (!_gtk_css_style_parse_value (&value, parser, base))
- {
- g_value_unset (&value);
- return NULL;
- }
-
- result = _gtk_css_value_new_from_gvalue (&value);
- g_value_unset (&value);
-
- return result;
-}
-
-static GtkCssValue *
parse_margin (GtkCssStyleProperty *property,
GtkCssParser *parser,
GFile *base)
@@ -1602,17 +1565,6 @@ _gtk_css_style_property_init_properties (void)
engine_assign,
NULL,
_gtk_css_engine_value_new (gtk_theming_engine_load (NULL)));
- gtk_css_style_property_register ("transition",
- GTK_CSS_PROPERTY_TRANSITION,
- GTK_TYPE_ANIMATION_DESCRIPTION,
- 0,
- transition_parse,
- NULL,
- NULL,
- query_simple,
- assign_simple,
- NULL,
- _gtk_css_value_new_from_boxed (GTK_TYPE_ANIMATION_DESCRIPTION, NULL));
/* Private property holding the binding sets */
gtk_css_style_property_register ("gtk-key-bindings",