[clutter] a11y: stop to use text as the default accessible-name for ClutterText
- From: Alejandro PiÃeiro Iglesias <apinheiro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] a11y: stop to use text as the default accessible-name for ClutterText
- Date: Thu, 26 Apr 2012 18:05:18 +0000 (UTC)
commit 9428aaa3cbfb49bbaee180774d4a760b7cac0c25
Author: Alejandro PiÃeiro <apinheiro igalia com>
Date: Wed Apr 4 12:07:06 2012 +0200
a11y: stop to use text as the default accessible-name for ClutterText
https://bugzilla.gnome.org/show_bug.cgi?id=672994
clutter/cally/cally-text.c | 25 -------------------------
1 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/clutter/cally/cally-text.c b/clutter/cally/cally-text.c
index 7c5e408..1e6635f 100644
--- a/clutter/cally/cally-text.c
+++ b/clutter/cally/cally-text.c
@@ -78,7 +78,6 @@ static void cally_text_finalize (GObject *obj);
/* AtkObject */
static void cally_text_real_initialize (AtkObject *obj,
gpointer data);
-static const gchar * cally_text_get_name (AtkObject *obj);
static AtkStateSet* cally_text_ref_state_set (AtkObject *obj);
/* atkaction */
@@ -240,7 +239,6 @@ cally_text_class_init (CallyTextClass *klass)
gobject_class->finalize = cally_text_finalize;
class->initialize = cally_text_real_initialize;
- class->get_name = cally_text_get_name;
class->ref_state_set = cally_text_ref_state_set;
cally_class->notify_clutter = cally_text_notify_clutter;
@@ -348,29 +346,6 @@ cally_text_real_initialize(AtkObject *obj,
obj->role = ATK_ROLE_TEXT;
}
-static const gchar *
-cally_text_get_name (AtkObject *obj)
-{
- const gchar *name;
-
- g_return_val_if_fail (CALLY_IS_ACTOR (obj), NULL);
-
- name = ATK_OBJECT_CLASS (cally_text_parent_class)->get_name (obj);
- if (name == NULL)
- {
- ClutterActor *actor = NULL;
-
- actor = CALLY_GET_CLUTTER_ACTOR (obj);
-
- if (actor == NULL) /* State is defunct */
- name = NULL;
- else
- name = clutter_text_get_text (CLUTTER_TEXT (actor));
- }
-
- return name;
-}
-
static AtkStateSet*
cally_text_ref_state_set (AtkObject *obj)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]