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

@ -40,6 +40,14 @@ gtk_css_value_image_equal (const GtkCssValue *value1,
return value1->image == value2->image;
}
static GtkCssValue *
gtk_css_value_image_transition (GtkCssValue *start,
GtkCssValue *end,
double progress)
{
return NULL;
}
static void
gtk_css_value_image_print (const GtkCssValue *value,
GString *string)
@ -53,6 +61,7 @@ gtk_css_value_image_print (const GtkCssValue *value,
static const GtkCssValueClass GTK_CSS_VALUE_IMAGE = {
gtk_css_value_image_free,
gtk_css_value_image_equal,
gtk_css_value_image_transition,
gtk_css_value_image_print
};