[evolution-patches] a contact a11y patch



Hi , HPJ

Attach is a little a11y patch for evolution contact. Please help me to review it.


Thanks
hao.sheng
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/ChangeLog,v
retrieving revision 1.1886
diff -u -p -r1.1886 ChangeLog
--- ChangeLog	3 Jan 2005 05:35:57 -0000	1.1886
+++ ChangeLog	6 Jan 2005 09:08:58 -0000
@@ -1,3 +1,9 @@
+2005-01-06  Hao Sheng <hao sheng sun com>
+
+	* gui/component/addressbook-view.c:
+	(addressbook_view_init): add a11y name for the contact's
+	treeview.
+
 2004-12-21  Andre Klapper <a9016009 gmx de>
        
        * tools/evolution-addressbook-export.c:
Index: gui/component/addressbook-view.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/component/addressbook-view.c,v
retrieving revision 1.27
diff -u -p -r1.27 addressbook-view.c
--- gui/component/addressbook-view.c	21 Oct 2004 21:34:45 -0000	1.27
+++ gui/component/addressbook-view.c	6 Jan 2005 09:09:38 -0000
@@ -1075,6 +1075,7 @@ addressbook_view_init (AddressbookView *
 {
 	AddressbookViewPrivate *priv;
 	GtkWidget *selector_scrolled_window;
+	AtkObject *a11y;
 
 	view->priv = 
 		priv = g_new0 (AddressbookViewPrivate, 1);
@@ -1125,6 +1126,8 @@ addressbook_view_init (AddressbookView *
 	g_signal_connect  (priv->selector, "drag-drop", G_CALLBACK (selector_tree_drag_drop), view);
 	g_signal_connect  (priv->selector, "drag-data-received", G_CALLBACK (selector_tree_drag_data_received), view);
 	gtk_drag_dest_set (priv->selector, GTK_DEST_DEFAULT_ALL, drag_types, num_drag_types, GDK_ACTION_COPY | GDK_ACTION_MOVE);
+	a11y = gtk_widget_get_accessible (GTK_WIDGET (priv->selector));
+	atk_object_set_name (a11y, _("Contact Source Selector"));
 
 	e_source_selector_show_selection (E_SOURCE_SELECTOR (priv->selector), FALSE);
 	gtk_widget_show (priv->selector);
begin:vcard
fn:hao sheng
n:sheng;hao
org:Sun Microsystems China Engineering & Research Institute;Desktop Group
adr:;;10/F Chuangxin Plaza, Tsinghua Science Park;Beijing;;100083;P.R.China
email;internet:hao sheng sun com
title:Software Engineer Intern
tel;work:+8610-82618200-82111
tel;cell:+86-13520134555
version:2.1
end:vcard



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