cssvalue: Add transition support for images

This commit is contained in:
Benjamin Otte 2012-04-02 03:37:25 +02:00
parent d853a8f2f7
commit e597f4d6a9

View File

@ -19,7 +19,7 @@
#include "gtkcssimagevalueprivate.h"
#include "gtkstylepropertyprivate.h"
#include "gtkcssimagecrossfadeprivate.h"
struct _GtkCssValue {
GTK_CSS_VALUE_BASE
@ -45,7 +45,13 @@ gtk_css_value_image_transition (GtkCssValue *start,
GtkCssValue *end,
double progress)
{
return NULL;
GtkCssImage *fade;
fade = _gtk_css_image_cross_fade_new (_gtk_css_image_value_get_image (start),
_gtk_css_image_value_get_image (end),
progress);
return _gtk_css_image_value_new (fade);
}
static void