-- Mengjie Yu <meng-jie yu sun com> meng-jie yu sun com |
Index: ChangeLog =================================================================== RCS file: /cvs/gnome/evolution/widgets/misc/ChangeLog,v retrieving revision 1.346 diff -u -p -r1.346 ChangeLog --- ChangeLog 20 Jan 2005 07:30:01 -0000 1.346 +++ ChangeLog 24 Jan 2005 09:18:57 -0000 @@ -1,3 +1,10 @@ +2005-01-24 Mengjie Yu <meng-jie yu sun com> + + Fixes #71660 + * e-search-bar.c: (activate_by_subitems), (set_option): + add a11y name for the option menu and text entry. + + 2005-01-20 Not Zed <NotZed Ximian com> ** See bug #64964. Index: e-search-bar.c =================================================================== RCS file: /cvs/gnome/evolution/widgets/misc/e-search-bar.c,v retrieving revision 1.79 diff -u -p -r1.79 e-search-bar.c --- e-search-bar.c 26 Jul 2004 15:30:14 -0000 1.79 +++ e-search-bar.c 24 Jan 2005 09:19:11 -0000 @@ -325,6 +325,7 @@ activate_by_subitems (ESearchBar *esb, g /* Create and add the entry */ if (esb->entry == NULL) { + AtkObject *a11y; esb->entry = gtk_entry_new(); gtk_widget_set_size_request (esb->entry, 4, -1); g_object_ref (esb->entry); @@ -334,6 +335,10 @@ activate_by_subitems (ESearchBar *esb, g G_CALLBACK (entry_activated_cb), esb); gtk_container_add (GTK_CONTAINER (esb->entry_box), esb->entry); gtk_widget_show(esb->entry); + a11y = gtk_widget_get_accessible (esb->entry); + /* To translators: This is the accessibility name of + the search bar's text entry widget */ + atk_object_set_name (a11y, _("Search Text Entry")); esb->subitem_id = -1; } @@ -629,9 +634,12 @@ set_option (ESearchBar *esb, ESearchBarI if (esb->option) { gtk_widget_destroy (esb->option_menu); } else { + AtkObject *a11y; esb->option = gtk_option_menu_new (); gtk_widget_show (esb->option); gtk_box_pack_start (GTK_BOX (esb), esb->option, FALSE, FALSE, 0); + a11y = gtk_widget_get_accessible (esb->option); + atk_object_set_name (a11y, _("Search Type")); } esb->option_menu = menu = gtk_menu_new ();