mirror of
https://github.com/brl/mutter.git
synced 2025-02-17 05:44:08 +00: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 gint cally_actor_get_n_children (AtkObject *obj);
|
||||||
static AtkObject* cally_actor_ref_child (AtkObject *obj,
|
static AtkObject* cally_actor_ref_child (AtkObject *obj,
|
||||||
gint i);
|
gint i);
|
||||||
|
static AtkAttributeSet * cally_actor_get_attributes (AtkObject *obj);
|
||||||
|
|
||||||
static gboolean _cally_actor_all_parents_visible (ClutterActor *actor);
|
static gboolean _cally_actor_all_parents_visible (ClutterActor *actor);
|
||||||
|
|
||||||
/* ClutterContainer */
|
/* ClutterContainer */
|
||||||
@ -353,6 +355,7 @@ cally_actor_class_init (CallyActorClass *klass)
|
|||||||
class->initialize = cally_actor_initialize;
|
class->initialize = cally_actor_initialize;
|
||||||
class->get_n_children = cally_actor_get_n_children;
|
class->get_n_children = cally_actor_get_n_children;
|
||||||
class->ref_child = cally_actor_ref_child;
|
class->ref_child = cally_actor_ref_child;
|
||||||
|
class->get_attributes = cally_actor_get_attributes;
|
||||||
|
|
||||||
g_type_class_add_private (gobject_class, sizeof (CallyActorPrivate));
|
g_type_class_add_private (gobject_class, sizeof (CallyActorPrivate));
|
||||||
}
|
}
|
||||||
@ -634,6 +637,21 @@ cally_actor_ref_child (AtkObject *obj,
|
|||||||
return result;
|
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 */
|
/* ClutterContainer */
|
||||||
static gint
|
static gint
|
||||||
cally_actor_add_actor (ClutterActor *container,
|
cally_actor_add_actor (ClutterActor *container,
|
||||||
|
@ -165,18 +165,13 @@ cally_util_get_root (void)
|
|||||||
static const gchar *
|
static const gchar *
|
||||||
cally_util_get_toolkit_name (void)
|
cally_util_get_toolkit_name (void)
|
||||||
{
|
{
|
||||||
return "CALLY";
|
return "clutter";
|
||||||
}
|
}
|
||||||
|
|
||||||
static const gchar *
|
static const gchar *
|
||||||
cally_util_get_toolkit_version (void)
|
cally_util_get_toolkit_version (void)
|
||||||
{
|
{
|
||||||
/*
|
return CLUTTER_VERSION_S;
|
||||||
* FIXME:
|
|
||||||
* Version is passed in as a -D flag when this file is
|
|
||||||
* compiled.
|
|
||||||
*/
|
|
||||||
return "0.1";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user