From af1cbe3eb5e0a51fe234217f7ab5d83227f7628b Mon Sep 17 00:00:00 2001 From: Hao Sheng Date: Tue, 18 Jan 2005 07:53:51 +0000 Subject: add a11y names for widgets named "Image","Anniversary" and "Birthday". add 2005-01-18 Hao Sheng * gui/contact-editor/contact-editor.glade: add a11y names for widgets named "Image","Anniversary" and "Birthday". * gui/contact-editor/e-contact-editor.c: (e_contact_editor_create_date): add string1 as entry's a11y name. svn path=/trunk/; revision=28429 --- addressbook/ChangeLog | 7 +++++++ addressbook/gui/contact-editor/contact-editor.glade | 5 +++++ addressbook/gui/contact-editor/e-contact-editor.c | 8 ++++++++ 3 files changed, 20 insertions(+) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 6af6d0fc01..7c2ef35907 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,10 @@ +2005-01-18 Hao Sheng + + * gui/contact-editor/contact-editor.glade: + add a11y names for widgets named "Image","Anniversary" and "Birthday". + * gui/contact-editor/e-contact-editor.c: + (e_contact_editor_create_date): add string1 as entry's a11y name. + 2005-01-17 Sivaiah Nallagatla * gui/contact-editor/e-contact-editor.c diff --git a/addressbook/gui/contact-editor/contact-editor.glade b/addressbook/gui/contact-editor/contact-editor.glade index 27df10c7fc..5f679b6bde 100644 --- a/addressbook/gui/contact-editor/contact-editor.glade +++ b/addressbook/gui/contact-editor/contact-editor.glade @@ -106,6 +106,9 @@ True GTK_RELIEF_NORMAL True + + Image + @@ -2550,6 +2553,7 @@ True e_contact_editor_create_date + Anniversary 0 0 Tue, 13 Apr 2004 23:56:03 GMT @@ -2568,6 +2572,7 @@ True e_contact_editor_create_date + Birthday 0 0 Tue, 13 Apr 2004 23:55:46 GMT diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index 61e3690ce0..a5e4039777 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -3468,10 +3468,18 @@ e_contact_editor_create_date(gchar *name, gint int1, gint int2) { GtkWidget *widget = e_date_edit_new (); + AtkObject *a11y; + e_date_edit_set_allow_no_date_set (E_DATE_EDIT (widget), TRUE); e_date_edit_set_show_time (E_DATE_EDIT (widget), FALSE); e_date_edit_set_time (E_DATE_EDIT (widget), -1); + + a11y = gtk_widget_get_accessible (e_date_edit_get_entry (E_DATE_EDIT(widget))); + if (a11y != NULL) { + atk_object_set_name (a11y, string1); + } + gtk_widget_show (widget); return widget; } -- cgit v1.2.3