[evolution-patches] add access name and access key to contact selector UI
- From: "hao.sheng" <hao sheng sun com>
- To: Hans Petter Jansson <hpj ximian com>
- Cc: evolution-patches ximian com
- Subject: [evolution-patches] add access name and access key to contact selector UI
- Date: Sun, 23 Jan 2005 18:09:49 +0800
hi hpj
Attach is an a11y patch for evolution contact selector UI.
Please help me to review it.
Thanks very much.
Best regards
hao.sheng
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/ChangeLog,v
retrieving revision 1.1902
diff -u -p -r1.1902 ChangeLog
--- ChangeLog 22 Jan 2005 04:03:51 -0000 1.1902
+++ ChangeLog 23 Jan 2005 09:11:25 -0000
@@ -1,3 +1,11 @@
+2005-01-23 Hao Sheng <hao sheng sun com>
+
+ * gui/contact-editor/contact-editor.glade:
+ add access keys to UI
+
+ * gui/contact-list-editor/e-contact-list-editor.c:
+ (setup_name_selector): add access key to Button.
+
2005-01-21 Sivaiah Nallagatla <snallagatla novell com>
* gui/widgets/e-addressbook-model.[ch]
Index: gui/contact-editor/contact-editor.glade
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/contact-editor/contact-editor.glade,v
retrieving revision 1.70
diff -u -p -r1.70 contact-editor.glade
--- gui/contact-editor/contact-editor.glade 18 Jan 2005 07:53:51 -0000 1.70
+++ gui/contact-editor/contact-editor.glade 23 Jan 2005 09:11:27 -0000
@@ -682,7 +682,7 @@
<widget class="GtkCheckButton" id="checkbutton-htmlmail">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">Wants to receive HTML mail</property>
+ <property name="label" translatable="yes">_Wants to receive HTML mail</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
@@ -1754,8 +1754,8 @@
<child>
<widget class="GtkLabel" id="accellabel-homepage">
<property name="visible">True</property>
- <property name="label" translatable="yes">Home Page:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Home Page:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -1764,6 +1764,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-homepage</property>
</widget>
<packing>
<property name="left_attach">0</property>
@@ -1778,8 +1779,8 @@
<child>
<widget class="GtkLabel" id="label-caluri">
<property name="visible">True</property>
- <property name="label" translatable="yes">Calendar:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Calendar:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -1788,6 +1789,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-caluri</property>
</widget>
<packing>
<property name="left_attach">0</property>
@@ -1802,8 +1804,8 @@
<child>
<widget class="GtkLabel" id="label-fburl">
<property name="visible">True</property>
- <property name="label" translatable="yes">Free/Busy:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Free/Busy:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -1812,6 +1814,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-fburl</property>
</widget>
<packing>
<property name="left_attach">0</property>
@@ -1826,8 +1829,8 @@
<child>
<widget class="GtkLabel" id="label-videourl">
<property name="visible">True</property>
- <property name="label" translatable="yes">Video Chat:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Video Chat:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -1836,6 +1839,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-videourl</property>
</widget>
<packing>
<property name="left_attach">0</property>
@@ -1922,8 +1926,8 @@
<child>
<widget class="GtkLabel" id="label-weblog">
<property name="visible">True</property>
- <property name="label" translatable="yes">Web Log:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Web Log:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -1932,6 +1936,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-weblog</property>
</widget>
<packing>
<property name="left_attach">0</property>
@@ -2010,8 +2015,8 @@
<child>
<widget class="GtkLabel" id="label-profession">
<property name="visible">True</property>
- <property name="label" translatable="yes">Profession:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Profession:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -2020,6 +2025,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-profession</property>
</widget>
<packing>
<property name="left_attach">0</property>
@@ -2058,8 +2064,8 @@
<child>
<widget class="GtkLabel" id="label-jobtitle">
<property name="visible">True</property>
- <property name="label" translatable="yes">Title:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Title:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -2068,6 +2074,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-jobtitle</property>
</widget>
<packing>
<property name="left_attach">2</property>
@@ -2106,8 +2113,8 @@
<child>
<widget class="GtkLabel" id="label-company">
<property name="visible">True</property>
- <property name="label" translatable="yes">Company:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Company:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -2116,6 +2123,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-company</property>
</widget>
<packing>
<property name="left_attach">0</property>
@@ -2154,8 +2162,8 @@
<child>
<widget class="GtkLabel" id="label-department">
<property name="visible">True</property>
- <property name="label" translatable="yes">Department:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Department:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -2164,6 +2172,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-department</property>
</widget>
<packing>
<property name="left_attach">2</property>
@@ -2202,8 +2211,8 @@
<child>
<widget class="GtkLabel" id="label-manager">
<property name="visible">True</property>
- <property name="label" translatable="yes">Manager:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Manager:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -2212,6 +2221,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-manager</property>
</widget>
<packing>
<property name="left_attach">0</property>
@@ -2250,8 +2260,8 @@
<child>
<widget class="GtkLabel" id="label-assistant">
<property name="visible">True</property>
- <property name="label" translatable="yes">Assistant:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Assistant:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -2260,6 +2270,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-assistant</property>
</widget>
<packing>
<property name="left_attach">2</property>
@@ -2384,8 +2395,8 @@
<child>
<widget class="GtkLabel" id="label-comments">
<property name="visible">True</property>
- <property name="label" translatable="yes">Notes:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Notes:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -2394,6 +2405,7 @@
<property name="yalign">0</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">text-comments</property>
</widget>
<packing>
<property name="left_attach">0</property>
@@ -2408,8 +2420,8 @@
<child>
<widget class="GtkLabel" id="label-office">
<property name="visible">True</property>
- <property name="label" translatable="yes">Office:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Office:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -2418,6 +2430,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-office</property>
</widget>
<packing>
<property name="left_attach">0</property>
@@ -2432,8 +2445,8 @@
<child>
<widget class="GtkLabel" id="label-spouse">
<property name="visible">True</property>
- <property name="label" translatable="yes">Spouse:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Spouse:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -2442,6 +2455,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-spouse</property>
</widget>
<packing>
<property name="left_attach">0</property>
@@ -2504,8 +2518,8 @@
<child>
<widget class="GtkLabel" id="label-birthday">
<property name="visible">True</property>
- <property name="label" translatable="yes">Birthday:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Birthday:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -2514,6 +2528,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">dateedit-birthday</property>
</widget>
<packing>
<property name="left_attach">2</property>
@@ -2528,8 +2543,8 @@
<child>
<widget class="GtkLabel" id="label-anniversary">
<property name="visible">True</property>
- <property name="label" translatable="yes">Anniversary:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Anniversary:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -2538,6 +2553,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">dateedit-anniversary</property>
</widget>
<packing>
<property name="left_attach">2</property>
@@ -2667,8 +2683,8 @@
<child>
<widget class="GtkLabel" id="label-home-city">
<property name="visible">True</property>
- <property name="label" translatable="yes">City:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_City:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -2677,6 +2693,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-home-city</property>
</widget>
<packing>
<property name="left_attach">2</property>
@@ -2715,8 +2732,8 @@
<child>
<widget class="GtkLabel" id="label-home-zip">
<property name="visible">True</property>
- <property name="label" translatable="yes">Zip/Postal Code:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Zip/Postal Code:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -2725,6 +2742,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-home-zip</property>
</widget>
<packing>
<property name="left_attach">2</property>
@@ -2763,8 +2781,8 @@
<child>
<widget class="GtkLabel" id="label-home-state">
<property name="visible">True</property>
- <property name="label" translatable="yes">State/Province:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_State/Province:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -2773,6 +2791,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-home-state</property>
</widget>
<packing>
<property name="left_attach">2</property>
@@ -2811,8 +2830,8 @@
<child>
<widget class="GtkLabel" id="label-home-country">
<property name="visible">True</property>
- <property name="label" translatable="yes">Country:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Country:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -2821,6 +2840,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-home-country</property>
</widget>
<packing>
<property name="left_attach">2</property>
@@ -2859,8 +2879,8 @@
<child>
<widget class="GtkLabel" id="label-home-address">
<property name="visible">True</property>
- <property name="label" translatable="yes">Address:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Address:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -2869,6 +2889,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">textview-home-address</property>
</widget>
<packing>
<property name="left_attach">0</property>
@@ -2948,8 +2969,8 @@
<child>
<widget class="GtkLabel" id="label-home-pobox">
<property name="visible">True</property>
- <property name="label" translatable="yes">PO Box:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_PO Box:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -2958,6 +2979,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-home-pobox</property>
</widget>
<packing>
<property name="left_attach">0</property>
@@ -3017,8 +3039,8 @@
<child>
<widget class="GtkLabel" id="label-work-city">
<property name="visible">True</property>
- <property name="label" translatable="yes">City:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_City:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -3027,6 +3049,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-work-city</property>
</widget>
<packing>
<property name="left_attach">2</property>
@@ -3065,8 +3088,8 @@
<child>
<widget class="GtkLabel" id="label-work-state">
<property name="visible">True</property>
- <property name="label" translatable="yes">State/Province:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_State/Province:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -3075,6 +3098,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-work-state</property>
</widget>
<packing>
<property name="left_attach">2</property>
@@ -3113,8 +3137,8 @@
<child>
<widget class="GtkLabel" id="label-work-zip">
<property name="visible">True</property>
- <property name="label" translatable="yes">Zip/Postal Code:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Zip/Postal Code:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -3123,6 +3147,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-work-zip</property>
</widget>
<packing>
<property name="left_attach">2</property>
@@ -3161,8 +3186,8 @@
<child>
<widget class="GtkLabel" id="label-work-country">
<property name="visible">True</property>
- <property name="label" translatable="yes">Country:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Country:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -3171,6 +3196,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-work-country</property>
</widget>
<packing>
<property name="left_attach">2</property>
@@ -3209,8 +3235,8 @@
<child>
<widget class="GtkLabel" id="label-work-address">
<property name="visible">True</property>
- <property name="label" translatable="yes">Address:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Address:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -3219,6 +3245,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">textview-work-address</property>
</widget>
<packing>
<property name="left_attach">0</property>
@@ -3298,8 +3325,8 @@
<child>
<widget class="GtkLabel" id="label-work-pobox">
<property name="visible">True</property>
- <property name="label" translatable="yes">PO Box:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_PO Box:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -3308,6 +3335,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-work-pobox</property>
</widget>
<packing>
<property name="left_attach">0</property>
@@ -3367,8 +3395,8 @@
<child>
<widget class="GtkLabel" id="label-other-city">
<property name="visible">True</property>
- <property name="label" translatable="yes">City:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_City:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -3377,6 +3405,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-other-city</property>
</widget>
<packing>
<property name="left_attach">2</property>
@@ -3415,8 +3444,8 @@
<child>
<widget class="GtkLabel" id="label-other-address">
<property name="visible">True</property>
- <property name="label" translatable="yes">Address:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Address:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -3425,6 +3454,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">textview-other-address</property>
</widget>
<packing>
<property name="left_attach">0</property>
@@ -3463,8 +3493,8 @@
<child>
<widget class="GtkLabel" id="label-other-state">
<property name="visible">True</property>
- <property name="label" translatable="yes">State/Province:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_State/Province:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -3473,6 +3503,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-other-state</property>
</widget>
<packing>
<property name="left_attach">2</property>
@@ -3487,8 +3518,8 @@
<child>
<widget class="GtkLabel" id="label-other-zip">
<property name="visible">True</property>
- <property name="label" translatable="yes">Zip/Postal Code:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Zip/Postal Code:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -3497,6 +3528,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-other-zip</property>
</widget>
<packing>
<property name="left_attach">2</property>
@@ -3535,8 +3567,8 @@
<child>
<widget class="GtkLabel" id="label-other-country">
<property name="visible">True</property>
- <property name="label" translatable="yes">Country:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_Country:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -3545,6 +3577,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-other-country</property>
</widget>
<packing>
<property name="left_attach">2</property>
@@ -3648,8 +3681,8 @@
<child>
<widget class="GtkLabel" id="label-other-pobox">
<property name="visible">True</property>
- <property name="label" translatable="yes">PO Box:</property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes">_PO Box:</property>
+ <property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -3658,6 +3691,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">entry-other-pobox</property>
</widget>
<packing>
<property name="left_attach">0</property>
Index: gui/contact-list-editor/e-contact-list-editor.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/contact-list-editor/e-contact-list-editor.c,v
retrieving revision 1.65
diff -u -p -r1.65 e-contact-list-editor.c
--- gui/contact-list-editor/e-contact-list-editor.c 23 Dec 2004 02:42:11 -0000 1.65
+++ gui/contact-list-editor/e-contact-list-editor.c 23 Jan 2005 09:11:27 -0000
@@ -706,7 +706,7 @@ setup_name_selector (EContactListEditor
editor->name_selector = e_name_selector_new ();
name_selector_model = e_name_selector_peek_model (editor->name_selector);
- e_name_selector_model_add_section (name_selector_model, "Members", gettext ("Members"), NULL);
+ e_name_selector_model_add_section (name_selector_model, "Members", gettext ("_Members"), NULL);
name_selector_dialog = e_name_selector_peek_dialog (editor->name_selector);
gtk_window_set_title (GTK_WINDOW (name_selector_dialog), _("Contact List Members"));
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/libedataserverui/ChangeLog,v
retrieving revision 1.18
diff -u -p -r1.18 ChangeLog
--- ChangeLog 22 Jan 2005 10:00:23 -0000 1.18
+++ ChangeLog 23 Jan 2005 10:00:49 -0000
@@ -1,3 +1,11 @@
+2005-01-23 Hao Sheng <hao sheng sun com>
+
+ * e-name-selector-dialog.c:
+ (e_name_selector_dialog_init): set label mnemonic widget.
+ (add_section): set a11y name for button and section.
+
+ * e-name-selector-dialog.glade: add access name and access key.
+
2005-01-22 Hans Petter Jansson <hpj novell com>
* Makefile.am (libedataserverui_1_2_la_SOURCES)
Index: e-name-selector-dialog.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/libedataserverui/e-name-selector-dialog.c,v
retrieving revision 1.4
diff -u -p -r1.4 e-name-selector-dialog.c
--- e-name-selector-dialog.c 4 Jan 2005 09:33:02 -0000 1.4
+++ e-name-selector-dialog.c 23 Jan 2005 10:00:49 -0000
@@ -81,6 +81,7 @@ e_name_selector_dialog_init (ENameSelect
GtkCellRenderer *cell_renderer;
GtkWidget *widget;
GtkWidget *container;
+ GtkWidget *label;
ESourceList *source_list;
/* Get Glade GUI */
@@ -153,6 +154,10 @@ e_name_selector_dialog_init (ENameSelect
widget = e_source_option_menu_new (name_selector_dialog->source_list);
g_signal_connect_swapped (widget, "source_selected", G_CALLBACK (source_selected), name_selector_dialog);
+
+ label = glade_xml_get_widget (name_selector_dialog->gui, "label30");
+ gtk_label_set_mnemonic_widget (GTK_LABEL (label), widget);
+
gtk_widget_show (widget);
container = glade_xml_get_widget (name_selector_dialog->gui, "source-menu-box");
@@ -382,6 +387,7 @@ add_section (ENameSelectorDialog *name_s
GtkTreeViewColumn *column;
GtkCellRenderer *cell_renderer;
GtkWidget *widget;
+ AtkObject *a11y;
g_assert (name != NULL);
g_assert (pretty_name != NULL);
@@ -391,9 +397,20 @@ add_section (ENameSelectorDialog *name_s
section.name = g_strdup (name);
section.section_box = GTK_BOX (gtk_hbox_new (FALSE, 12));
- section.transfer_button = GTK_BUTTON (gtk_button_new_with_label (pretty_name));
+ section.transfer_button = GTK_BUTTON (gtk_button_new_with_mnemonic (pretty_name));
section.destination_view = GTK_TREE_VIEW (gtk_tree_view_new ());
+ a11y = gtk_widget_get_accessible (section.destination_view);
+ if (a11y != NULL) {
+ gchar *text;
+ if (pango_parse_markup (pretty_name, -1, '_', NULL,
+ &text, NULL, NULL)) {
+ atk_object_set_name (a11y, text);
+ g_free (text);
+ }
+ }
+
+
/* Set up transfer button */
g_signal_connect_swapped (section.transfer_button, "clicked",
G_CALLBACK (transfer_button_clicked), name_selector_dialog);
Index: e-name-selector-dialog.glade
===================================================================
RCS file: /cvs/gnome/evolution-data-server/libedataserverui/e-name-selector-dialog.glade,v
retrieving revision 1.2
diff -u -p -r1.2 e-name-selector-dialog.glade
--- e-name-selector-dialog.glade 17 Dec 2004 21:40:25 -0000 1.2
+++ e-name-selector-dialog.glade 23 Jan 2005 10:00:49 -0000
@@ -93,6 +93,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">source-menu-box</property>
</widget>
<packing>
<property name="left_attach">0</property>
@@ -109,6 +110,9 @@
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">12</property>
+ <accessibility>
+ <atkproperty name="AtkObject::accessible_description" translatable="yes"> </atkproperty>
+ </accessibility>
<child>
<widget class="GtkEntry" id="search">
@@ -121,6 +125,9 @@
<property name="has_frame">True</property>
<property name="invisible_char" translatable="yes">*</property>
<property name="activates_default">False</property>
+ <accessibility>
+ <atkproperty name="AtkObject::accessible_name" translatable="yes">Search</atkproperty>
+ </accessibility>
</widget>
<packing>
<property name="padding">0</property>
@@ -150,6 +157,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">search</property>
</widget>
<packing>
<property name="left_attach">0</property>
@@ -166,6 +174,9 @@
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
+ <accessibility>
+ <atkproperty name="AtkObject::accessible_name" translatable="yes">Address Book</atkproperty>
+ </accessibility>
<child>
<placeholder/>
@@ -219,8 +230,8 @@
<child>
<widget class="GtkLabel" id="label36">
<property name="visible">True</property>
- <property name="label" translatable="yes"><b>Contacts</b></property>
- <property name="use_underline">False</property>
+ <property name="label" translatable="yes"><b>_Contacts</b></property>
+ <property name="use_underline">True</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
@@ -229,6 +240,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="mnemonic_widget">source-tree-view</property>
</widget>
<packing>
<property name="padding">0</property>
@@ -272,6 +284,10 @@
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="shadow_type">GTK_SHADOW_IN</property>
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
+ <accessibility>
+ <atkproperty name="AtkObject::accessible_name" translatable="yes">Contacts</atkproperty>
+ <atkrelation target="label36" type="labelled-by"/>
+ </accessibility>
<child>
<widget class="GtkTreeView" id="source-tree-view">
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]