[gtk+] cssvalue: Add transition support for images



commit e597f4d6a997d0f8f4f27f50ed35a8472b406be7
Author: Benjamin Otte <otte redhat com>
Date:   Mon Apr 2 03:37:25 2012 +0200

    cssvalue: Add transition support for images

 gtk/gtkcssimagevalue.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcssimagevalue.c b/gtk/gtkcssimagevalue.c
index 0beb3fe..e67e9ea 100644
--- a/gtk/gtkcssimagevalue.c
+++ b/gtk/gtkcssimagevalue.c
@@ -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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]