[gtk+/gtk-style-context: 190/533] GtkCssProvider: Parse properties of type GtkAnimationDescription.



commit 18c44a5c8b20c0b0d80b646e36c627abaf8f40c9
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]