changeset 22682:72141dd0f8c0

Give a name to the statusbox button so that it can be accessible by screen readers. Thanks to Joanie for the hint, and to Sim-on for keeping it alive. Fixes #3711.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 23 Apr 2008 10:22:38 +0000
parents 4a05b9db0b91
children 32624648b797
files pidgin/gtkstatusbox.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkstatusbox.c	Wed Apr 23 10:11:58 2008 +0000
+++ b/pidgin/gtkstatusbox.c	Wed Apr 23 10:22:38 2008 +0000
@@ -1723,6 +1723,8 @@
 	gtk_cell_view_set_model(GTK_CELL_VIEW(status_box->cell_view), GTK_TREE_MODEL(status_box->store));
 	gtk_list_store_append(status_box->store, &(status_box->iter));
 
+	atk_object_set_name(gtk_widget_get_accessible(status_box->toggle_button), _("Status Selector"));
+
 	gtk_container_add(GTK_CONTAINER(status_box->toggle_button), status_box->hbox);
 	gtk_box_pack_start(GTK_BOX(status_box->hbox), status_box->cell_view, TRUE, TRUE, 0);
 	gtk_box_pack_start(GTK_BOX(status_box->hbox), status_box->vsep, FALSE, FALSE, 0);