cssvalue: Add _gtk_css_value_transition()

Returns a value that transitions between start and end or %NULL if the
values cannot be transitioned.

So far, all implementations but numbers and rgba return NULL.
This commit is contained in:
Benjamin Otte
2012-03-30 17:47:26 +02:00
parent bf92f2f7ac
commit 1a9dfab825
11 changed files with 128 additions and 0 deletions

View File

@ -39,6 +39,14 @@ gtk_css_value_string_equal (const GtkCssValue *value1,
return g_strcmp0 (value1->string, value2->string) == 0;
}
static GtkCssValue *
gtk_css_value_string_transition (GtkCssValue *start,
GtkCssValue *end,
double progress)
{
return NULL;
}
static void
gtk_css_value_string_print (const GtkCssValue *value,
GString *str)
@ -83,6 +91,7 @@ gtk_css_value_string_print (const GtkCssValue *value,
static const GtkCssValueClass GTK_CSS_VALUE_STRING = {
gtk_css_value_string_free,
gtk_css_value_string_equal,
gtk_css_value_string_transition,
gtk_css_value_string_print
};