From 604919b2ce39088d0e458eb193c064a027569504 Mon Sep 17 00:00:00 2001 From: Mengjie Yu Date: Wed, 1 Dec 2004 05:55:39 +0000 Subject: add mnemonic for buttons. add atk name for the popup button. add access 2004-12-01 Mengjie Yu * em-account-editor.c: (emae_option_toggle), (emae_receive_options_item):add mnemonic for buttons. * em-format-html-display.c: (efhd_attachment_button):add atk name for the popup button. * mail-account-gui.c: (mail_account_gui_build_extra_conf):add access key for checkbox. * message-list.c: (message_list_construct):add a atk name for the message list. svn path=/trunk/; revision=28029 --- mail/em-format-html-display.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mail/em-format-html-display.c') diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c index 5d58bf63b6..dee72303d6 100644 --- a/mail/em-format-html-display.c +++ b/mail/em-format-html-display.c @@ -1213,6 +1213,7 @@ efhd_attachment_button(EMFormatHTML *efh, GtkHTMLEmbedded *eb, EMFormatHTMLPObje { NULL, 0, 0 }, { "text/uri-list", 0, 1 }, }; + AtkObject *a11y; /* FIXME: handle default shown case */ d(printf("adding attachment button/content\n")); @@ -1292,6 +1293,11 @@ efhd_attachment_button(EMFormatHTML *efh, GtkHTMLEmbedded *eb, EMFormatHTMLPObje button = gtk_button_new(); /*GTK_WIDGET_UNSET_FLAGS(button, GTK_CAN_FOCUS);*/ gtk_container_add((GtkContainer *)button, gtk_arrow_new(GTK_ARROW_DOWN, GTK_SHADOW_NONE)); + + a11y = gtk_widget_get_accessible (button); + atk_object_set_name (a11y, _("Attachment Button")); + + g_signal_connect(button, "button_press_event", G_CALLBACK(efhd_attachment_popup), info); g_signal_connect(button, "popup_menu", G_CALLBACK(efhd_attachment_popup_menu), info); g_signal_connect(button, "clicked", G_CALLBACK(efhd_attachment_popup_menu), info); -- cgit v1.2.3