diff options
author | Li Yuan <li.yuan@sun.com> | 2004-11-01 13:04:37 +0800 |
---|---|---|
committer | Harry Lu <haip@src.gnome.org> | 2004-11-01 13:04:37 +0800 |
commit | cb9c99c5f424496a2fb8526a8c2e492d41140e9e (patch) | |
tree | ac8bf00f2f62bfef4a3a448a05e13c843d1daea6 /widgets/misc/e-multi-config-dialog.c | |
parent | 96974d33c3010ba91d201accc5ed5c949e5cc921 (diff) | |
download | gsoc2013-evolution-cb9c99c5f424496a2fb8526a8c2e492d41140e9e.tar.gz gsoc2013-evolution-cb9c99c5f424496a2fb8526a8c2e492d41140e9e.tar.zst gsoc2013-evolution-cb9c99c5f424496a2fb8526a8c2e492d41140e9e.zip |
Add a name for timezone combox. Make accessibility name and description
2004-10-28 Li Yuan <li.yuan@sun.com>
* 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
Diffstat (limited to 'widgets/misc/e-multi-config-dialog.c')
-rw-r--r-- | widgets/misc/e-multi-config-dialog.c | 11 |
1 files changed, 10 insertions, 1 deletions
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; |