summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Piñeiro <apinheiro@igalia.com>2012-02-29 15:47:36 +0100
committerAlejandro Piñeiro <apinheiro@igalia.com>2012-02-29 15:52:49 +0100
commitdde5da1dd8f75c3522f3b89417f3e5eb5a414a25 (patch)
tree266a72c5963167bbc222dbb0488b5835899776ab
parent9d9afc0f05f4e476305f29cfc0447775c7fe9134 (diff)
downloadclutter-dde5da1dd8f75c3522f3b89417f3e5eb5a414a25.tar.gz
a11y: Stop to use ClutterActor::name as default accessible-name
ClutterActor::name is mostly used for debugging purposes
-rw-r--r--clutter/cally/cally-actor.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/clutter/cally/cally-actor.c b/clutter/cally/cally-actor.c
index 1b6a7f6aa..72babdbfc 100644
--- a/clutter/cally/cally-actor.c
+++ b/clutter/cally/cally-actor.c
@@ -118,7 +118,6 @@ static void cally_actor_finalize (GObject *obj);
static AtkObject* cally_actor_get_parent (AtkObject *obj);
static gint cally_actor_get_index_in_parent (AtkObject *obj);
static AtkStateSet* cally_actor_ref_state_set (AtkObject *obj);
-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);
@@ -283,7 +282,6 @@ cally_actor_class_init (CallyActorClass *klass)
gobject_class->finalize = cally_actor_finalize;
/* AtkObject */
- class->get_name = cally_actor_get_name;
class->get_parent = cally_actor_get_parent;
class->get_index_in_parent = cally_actor_get_index_in_parent;
class->ref_state_set = cally_actor_ref_state_set;
@@ -344,29 +342,6 @@ cally_actor_finalize (GObject *obj)
/* AtkObject */
-static const gchar*
-cally_actor_get_name (AtkObject *obj)
-{
- const gchar* name = NULL;
-
- g_return_val_if_fail (CALLY_IS_ACTOR (obj), NULL);
-
- name = ATK_OBJECT_CLASS (cally_actor_parent_class)->get_name (obj);
- if (name == NULL)
- {
- CallyActor *cally_actor = NULL;
- ClutterActor *actor = NULL;
-
- cally_actor = CALLY_ACTOR (obj);
- actor = CALLY_GET_CLUTTER_ACTOR (cally_actor);
- if (actor == NULL) /* State is defunct */
- name = NULL;
- else
- name = clutter_actor_get_name (actor);
- }
- return name;
-}
-
static AtkObject *
cally_actor_get_parent (AtkObject *obj)
{