mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
[a11y] Exposing via ATK the proper toolkit name and version
This commit is contained in:
parent
bd3762b719
commit
7e9ee85c7d
@ -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,
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user