aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHao Sheng <hao.sheng@sun.com>2005-01-18 15:53:51 +0800
committerHarry Lu <haip@src.gnome.org>2005-01-18 15:53:51 +0800
commitaf1cbe3eb5e0a51fe234217f7ab5d83227f7628b (patch)
treeb7c95ae2c300fe15b84f1a65962487e4bb70899c
parent2fef5caaa6d7e8968975fb50c201dd1382f82723 (diff)
downloadgsoc2013-evolution-af1cbe3eb5e0a51fe234217f7ab5d83227f7628b.tar
gsoc2013-evolution-af1cbe3eb5e0a51fe234217f7ab5d83227f7628b.tar.gz
gsoc2013-evolution-af1cbe3eb5e0a51fe234217f7ab5d83227f7628b.tar.bz2
gsoc2013-evolution-af1cbe3eb5e0a51fe234217f7ab5d83227f7628b.tar.lz
gsoc2013-evolution-af1cbe3eb5e0a51fe234217f7ab5d83227f7628b.tar.xz
gsoc2013-evolution-af1cbe3eb5e0a51fe234217f7ab5d83227f7628b.tar.zst
gsoc2013-evolution-af1cbe3eb5e0a51fe234217f7ab5d83227f7628b.zip
add a11y names for widgets named "Image","Anniversary" and "Birthday". add
2005-01-18 Hao Sheng <hao.sheng@sun.com> * 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
-rw-r--r--addressbook/ChangeLog7
-rw-r--r--addressbook/gui/contact-editor/contact-editor.glade5
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c8
3 files changed, 20 insertions, 0 deletions
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 <hao.sheng@sun.com>
+
+ * 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 <snallagatla@novell.com>
* 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 @@
<property name="can_focus">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
+ <accessibility>
+ <atkproperty name="AtkObject::accessible_name" translatable="yes">Image</atkproperty>
+ </accessibility>
<child>
<widget class="Custom" id="image-chooser">
@@ -2550,6 +2553,7 @@
<widget class="Custom" id="dateedit-anniversary">
<property name="visible">True</property>
<property name="creation_function">e_contact_editor_create_date</property>
+ <property name="string1">Anniversary</property>
<property name="int1">0</property>
<property name="int2">0</property>
<property name="last_modification_time">Tue, 13 Apr 2004 23:56:03 GMT</property>
@@ -2568,6 +2572,7 @@
<widget class="Custom" id="dateedit-birthday">
<property name="visible">True</property>
<property name="creation_function">e_contact_editor_create_date</property>
+ <property name="string1">Birthday</property>
<property name="int1">0</property>
<property name="int2">0</property>
<property name="last_modification_time">Tue, 13 Apr 2004 23:55:46 GMT</property>
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;
}