From 4abde8d89e965a56cbc5ff7c81b2220b6db2b338 Mon Sep 17 00:00:00 2001 From: mengjie yu Date: Thu, 4 Nov 2004 02:15:58 +0000 Subject: fix for bugzilla #44876 2004-11-04 mengjie yu fix for bugzilla #44876 * gui/component/select-names/e-select-names-manager.c: (e_select_names_manager_entry_new):add a atk name for the entry. svn path=/trunk/; revision=27829 --- .../gui/component/select-names/e-select-names-manager.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'addressbook/gui/component/select-names') diff --git a/addressbook/gui/component/select-names/e-select-names-manager.c b/addressbook/gui/component/select-names/e-select-names-manager.c index 43b69d9149..3f574e608c 100644 --- a/addressbook/gui/component/select-names/e-select-names-manager.c +++ b/addressbook/gui/component/select-names/e-select-names-manager.c @@ -199,6 +199,18 @@ e_select_names_manager_entry_new (ESelectNamesManager *manager, ESelectNamesMode entry->id = g_strdup (id); entry->entry = E_ENTRY (e_entry_new ()); + + if (atk_get_root () != NULL) { + AtkObject *a11y = atk_gobject_accessible_for_object (entry->entry->item); + if (a11y != NULL) { + gchar *text; + if (pango_parse_markup (id, -1, '_', NULL, + &text, NULL, NULL)) { + atk_object_set_name (a11y, text); + g_free (text); + } + } + } text_model = e_select_names_text_model_new (model); g_object_set(entry->entry, "model", text_model, /* The entry takes ownership of the text model */ -- cgit v1.2.3