diff --git a/clutter/cally/cally-actor.c b/clutter/cally/cally-actor.c index d7f0528d9..3365d1034 100644 --- a/clutter/cally/cally-actor.c +++ b/clutter/cally/cally-actor.c @@ -151,6 +151,8 @@ static const gchar* cally_actor_get_name (AtkObject *obj); static gint cally_actor_get_n_children (AtkObject *obj); static AtkObject* cally_actor_ref_child (AtkObject *obj, gint i); +static AtkAttributeSet * cally_actor_get_attributes (AtkObject *obj); + static gboolean _cally_actor_all_parents_visible (ClutterActor *actor); /* ClutterContainer */ @@ -353,6 +355,7 @@ cally_actor_class_init (CallyActorClass *klass) class->initialize = cally_actor_initialize; class->get_n_children = cally_actor_get_n_children; class->ref_child = cally_actor_ref_child; + class->get_attributes = cally_actor_get_attributes; g_type_class_add_private (gobject_class, sizeof (CallyActorPrivate)); } @@ -634,6 +637,21 @@ cally_actor_ref_child (AtkObject *obj, return result; } +static AtkAttributeSet * +cally_actor_get_attributes (AtkObject *obj) +{ + AtkAttributeSet *attributes; + AtkAttribute *toolkit; + + toolkit = g_new (AtkAttribute, 1); + toolkit->name = g_strdup ("toolkit"); + toolkit->value = g_strdup ("clutter"); + + attributes = g_slist_append (NULL, toolkit); + + return attributes; +} + /* ClutterContainer */ static gint cally_actor_add_actor (ClutterActor *container, diff --git a/clutter/cally/cally-util.c b/clutter/cally/cally-util.c index b4bd19ee2..cb3365458 100644 --- a/clutter/cally/cally-util.c +++ b/clutter/cally/cally-util.c @@ -165,18 +165,13 @@ cally_util_get_root (void) static const gchar * cally_util_get_toolkit_name (void) { - return "CALLY"; + return "clutter"; } static const gchar * cally_util_get_toolkit_version (void) { - /* - * FIXME: - * Version is passed in as a -D flag when this file is - * compiled. - */ - return "0.1"; + return CLUTTER_VERSION_S; }