[gtk+/gtk-style-context] GtkCssProvider: Parse properties of type GtkAnimationDescription.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context] GtkCssProvider: Parse properties of type GtkAnimationDescription.
- Date: Thu, 19 Aug 2010 23:36:12 +0000 (UTC)
commit f2f0523441c15bb048c6cc9a5dad88614e003a3d
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Aug 19 21:50:19 2010 +0200
GtkCssProvider: Parse properties of type GtkAnimationDescription.
gtk/gtkcssprovider.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index a07db0c..8bd0c09 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -24,6 +24,7 @@
#include <gtk/gtk.h>
#include <gtkstyleprovider.h>
+#include "gtkanimationdescription.h"
#include "gtkcssprovider.h"
#include "gtkalias.h"
@@ -1393,6 +1394,17 @@ css_provider_parse_value (const gchar *value_str,
engine = (GtkThemingEngine *) gtk_theming_engine_load (value_str);
g_value_set_object (value, engine);
}
+ else if (type == GTK_TYPE_ANIMATION_DESCRIPTION)
+ {
+ GtkAnimationDescription *desc;
+
+ desc = gtk_animation_description_from_string (value_str);
+
+ if (desc)
+ g_value_take_boxed (value, desc);
+ else
+ parsed = FALSE;
+ }
else
{
g_warning ("Cannot parse string '%s' for type %s", value_str, g_type_name (type));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]