[Fwd: [evolution-patches] Add an a11y name for the search text entry]



Hi,
   The attaching patch was committed into CVS HEAD.
   Thanks!
      Harry
--- Begin Message ---
Hi,
   Here is a small a11y patch. Please review it.
   Thanks!
      Harry
Index: misc/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/widgets/misc/ChangeLog,v
retrieving revision 1.342
diff -u -r1.342 ChangeLog
--- misc/ChangeLog	12 Jan 2005 14:03:41 -0000	1.342
+++ misc/ChangeLog	17 Jan 2005 06:23:54 -0000
@@ -1,3 +1,10 @@
+2005-01-17  Harry Lu  <harry lu sun com>
+
+	Fix for 62831.
+
+	* e-search-bar.c: (activate_by_subitems): add an a11y name for 
+	the search entry.
+
 2005-01-12 Chenthill Palanisamy <pchenthill novell com>
 
 	* e-send-options.c: (e_send_options_get_widgets_data),
Index: misc/e-search-bar.c
===================================================================
RCS file: /cvs/gnome/evolution/widgets/misc/e-search-bar.c,v
retrieving revision 1.79
diff -u -r1.79 e-search-bar.c
--- misc/e-search-bar.c	26 Jul 2004 15:30:14 -0000	1.79
+++ misc/e-search-bar.c	17 Jan 2005 06:23:55 -0000
@@ -325,6 +325,8 @@
 		/* 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 +336,9 @@
 					  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);
+			atk_object_set_name (a11y, _("Search Text Entry"));
 
 			esb->subitem_id = -1;
 		}

--- End Message ---


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]