[gtk+/wip/cssvalue: 98/137] cssvalue: Add transition support for images



commit d9578d8fd41ab51bb705df04da3b4e4f3907d561
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]