From cb9c99c5f424496a2fb8526a8c2e492d41140e9e Mon Sep 17 00:00:00 2001
From: Li Yuan
Date: Mon, 1 Nov 2004 05:04:37 +0000
Subject: Add a name for timezone combox. Make accessibility name and
description
2004-10-28 Li Yuan
* e-timezone-dialog/e-timezone-dialog.glade:
Add a name for timezone combox.
* misc/e-calendar.c: (e_calendar_init), (e_calendar_new):
Make accessibility name and description translatable.
Add a atk name for the two buttons so that they can be UI
grabbed by GOK.
* misc/e-dateedit.c: (e_date_edit_new), (create_children):
Add a name for atk object.
Make accessibility name and description translatable.
Add name and description for the date_entry, date_button
and time_combo.
(e_date_edit_show_date_popup), (hide_date_popup):
Grab and ungrab keyboard.
add_relation():
New function to add labelled_by relation for entry
and combobox.
* misc/e-map.c: (e_map_new):
Add a name for world map widget.
Make accessibility name and description translatable.
Set the atk role to image.
* misc/e-multi-config-dialog.c: (e_multi_config_dialog_add_page):
Add an atk name for the page.
svn path=/trunk/; revision=27776
---
widgets/misc/e-multi-config-dialog.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
(limited to 'widgets/misc/e-multi-config-dialog.c')
diff --git a/widgets/misc/e-multi-config-dialog.c b/widgets/misc/e-multi-config-dialog.c
index aa38ad1e34..71b9457e7d 100644
--- a/widgets/misc/e-multi-config-dialog.c
+++ b/widgets/misc/e-multi-config-dialog.c
@@ -395,6 +395,8 @@ e_multi_config_dialog_add_page (EMultiConfigDialog *dialog,
EConfigPage *page_widget)
{
EMultiConfigDialogPrivate *priv;
+ AtkObject *a11y;
+ gint page_no;
g_return_if_fail (E_IS_MULTI_CONFIG_DIALOG (dialog));
g_return_if_fail (title != NULL);
@@ -411,10 +413,17 @@ e_multi_config_dialog_add_page (EMultiConfigDialog *dialog,
fill_in_pixbufs (dialog, e_table_model_row_count (priv->list_e_table_model) - 1);
}
- gtk_notebook_append_page (GTK_NOTEBOOK (priv->notebook),
+ page_no = gtk_notebook_append_page (GTK_NOTEBOOK (priv->notebook),
create_page_container (description, GTK_WIDGET (page_widget)),
NULL);
+ a11y = gtk_widget_get_accessible (GTK_WIDGET(priv->notebook));
+ AtkObject *a11yPage = atk_object_ref_accessible_child (a11y, page_no);
+ if (a11yPage != NULL) {
+ if (atk_object_get_role (a11yPage) == ATK_ROLE_PAGE_TAB)
+ atk_object_set_name (a11yPage, title);
+ g_object_unref (a11yPage);
+ }
if (priv->pages->next == NULL) {
ETable *table;
--
cgit v1.2.3