[gtk+/gtk-style-context: 192/206] GtkStyleSet: Register the "transition" property.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 192/206] GtkStyleSet: Register the "transition" property.
- Date: Mon, 23 Aug 2010 17:31:05 +0000 (UTC)
commit cb344bf4d3e10bbe76e998ff3709598df8201465
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Aug 19 21:49:22 2010 +0200
GtkStyleSet: Register the "transition" property.
gtk/gtkstyleset.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstyleset.c b/gtk/gtkstyleset.c
index 6472039..d1ab9eb 100644
--- a/gtk/gtkstyleset.c
+++ b/gtk/gtkstyleset.c
@@ -26,6 +26,7 @@
#include "gtkstyleset.h"
#include "gtkprivate.h"
#include "gtkthemingengine.h"
+#include "gtkanimationdescription.h"
#include "gtkintl.h"
#include "gtkalias.h"
@@ -94,6 +95,11 @@ gtk_style_set_class_init (GtkStyleSetClass *klass)
gtk_style_set_register_property ("engine", GTK_TYPE_THEMING_ENGINE, &val, NULL);
g_value_unset (&val);
+ g_value_init (&val, GTK_TYPE_ANIMATION_DESCRIPTION);
+ g_value_take_boxed (&val, gtk_animation_description_new (0, GTK_TIMELINE_PROGRESS_LINEAR));
+ gtk_style_set_register_property ("transition", GTK_TYPE_ANIMATION_DESCRIPTION, &val, NULL);
+ g_value_unset (&val);
+
g_type_class_add_private (object_class, sizeof (GtkStyleSetPrivate));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]