GtkCssProvider: Parse properties of type GtkAnimationDescription.
This commit is contained in:
parent
114f30b772
commit
52baa7d51e
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user