[gtk+/wip/cssvalue: 98/164] cssvalue: Add transition support for images
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/cssvalue: 98/164] cssvalue: Add transition support for images
- Date: Wed, 11 Apr 2012 14:48:09 +0000 (UTC)
commit e68f5e1de06456793b7da9450563b1a244d3a0ac
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]