[gtk+/gtk-style-context: 190/490] GtkCssProvider: Parse properties of type GtkAnimationDescription.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 190/490] GtkCssProvider: Parse properties of type GtkAnimationDescription.
- Date: Wed, 24 Nov 2010 13:55:36 +0000 (UTC)
commit c2cd4030e35c7a317f517c27bc46d3ce7ff3b614
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 0ca90fb..c9c5a17 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 = 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]