From 225b984f8c93e95827306c49496e326cb8e4e4f9 Mon Sep 17 00:00:00 2001 From: Harry Lu Date: Sat, 5 Feb 2005 05:57:06 +0000 Subject: Add a11y name for attachment button and bars. 2005-02-04 Harry Lu Add a11y name for attachment button and bars. * gui/dialogs/cal-attachment-bar.c: (cal_attachment_bar_new): * gui/dialogs/comp-editor.c: (setup_widgets): svn path=/trunk/; revision=28714 --- calendar/gui/dialogs/cal-attachment-bar.c | 3 +++ calendar/gui/dialogs/comp-editor.c | 1 + 2 files changed, 4 insertions(+) (limited to 'calendar/gui') diff --git a/calendar/gui/dialogs/cal-attachment-bar.c b/calendar/gui/dialogs/cal-attachment-bar.c index 57c0cab5f1..c816026820 100644 --- a/calendar/gui/dialogs/cal-attachment-bar.c +++ b/calendar/gui/dialogs/cal-attachment-bar.c @@ -694,6 +694,9 @@ cal_attachment_bar_new (GtkAdjustment *adj) gnome_icon_list_set_icon_border (icon_list, ICON_BORDER); gnome_icon_list_set_text_spacing (icon_list, ICON_TEXT_SPACING); gnome_icon_list_set_selection_mode (icon_list, GTK_SELECTION_MULTIPLE); + + atk_object_set_name (gtk_widget_get_accessible (GTK_WIDGET (new)), + _("Attachment Bar")); return GTK_WIDGET (new); } diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index 062b4b03e5..d91c55a348 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -572,6 +572,7 @@ setup_widgets (CompEditor *editor) priv->attachment_expander = e_expander_new (""); e_expander_set_label_widget (E_EXPANDER (priv->attachment_expander), expander_hbox); + atk_object_set_name (gtk_widget_get_accessible (priv->attachment_expander), _("Attachment Button: Press space key to toggle attachment bar")); gtk_container_add (GTK_CONTAINER (priv->attachment_expander), priv->attachment_scrolled_window); -- cgit v1.2.3