From bc28593619fe980d753b87d87c9bab7c370d8829 Mon Sep 17 00:00:00 2001 From: Harry Lu Date: Wed, 16 Feb 2005 05:33:15 +0000 Subject: Add a11y name for attachment button and bars 2005-02-16 Harry Lu Add a11y name for attachment button and bars * e-msg-composer-attachment-bar.c: (e_msg_composer_attachment_bar_new): * e-msg-composer.c: (create_composer): svn path=/trunk/; revision=28802 --- composer/ChangeLog | 8 ++++++++ composer/e-msg-composer-attachment-bar.c | 3 +++ composer/e-msg-composer.c | 1 + 3 files changed, 12 insertions(+) diff --git a/composer/ChangeLog b/composer/ChangeLog index 910502375a..557872f3b8 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,11 @@ +2005-02-16 Harry Lu + + Add a11y name for attachment button and bars + + * e-msg-composer-attachment-bar.c: + (e_msg_composer_attachment_bar_new): + * e-msg-composer.c: (create_composer): + 2005-02-10 Not Zed ** See bug #66126. diff --git a/composer/e-msg-composer-attachment-bar.c b/composer/e-msg-composer-attachment-bar.c index d2e44ca8b8..8a7b4357f4 100644 --- a/composer/e-msg-composer-attachment-bar.c +++ b/composer/e-msg-composer-attachment-bar.c @@ -698,6 +698,9 @@ e_msg_composer_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/composer/e-msg-composer.c b/composer/e-msg-composer.c index f825542999..76483c76b6 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -3490,6 +3490,7 @@ create_composer (int visible_mask) composer->attachment_expander = e_expander_new (""); e_expander_set_label_widget (E_EXPANDER (composer->attachment_expander), expander_hbox); + atk_object_set_name (gtk_widget_get_accessible (composer->attachment_expander), _("Attachment Button: Press space key to toggle attachment bar")); gtk_container_add (GTK_CONTAINER (composer->attachment_expander), composer->attachment_scrolled_window); -- cgit