Mercurial > pidgin.yaz
comparison pidgin/gtkstatusbox.c @ 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 | a73acc0c4dc8 |
children | 0ccc0e9ae565 |
comparison
equal
deleted
inserted
replaced
22681:4a05b9db0b91 | 22682:72141dd0f8c0 |
---|---|
1720 status_box->dropdown_store = gtk_list_store_new(NUM_COLUMNS, G_TYPE_INT, GDK_TYPE_PIXBUF, G_TYPE_STRING, | 1720 status_box->dropdown_store = gtk_list_store_new(NUM_COLUMNS, G_TYPE_INT, GDK_TYPE_PIXBUF, G_TYPE_STRING, |
1721 G_TYPE_STRING, G_TYPE_STRING, G_TYPE_POINTER, G_TYPE_STRING, G_TYPE_BOOLEAN); | 1721 G_TYPE_STRING, G_TYPE_STRING, G_TYPE_POINTER, G_TYPE_STRING, G_TYPE_BOOLEAN); |
1722 | 1722 |
1723 gtk_cell_view_set_model(GTK_CELL_VIEW(status_box->cell_view), GTK_TREE_MODEL(status_box->store)); | 1723 gtk_cell_view_set_model(GTK_CELL_VIEW(status_box->cell_view), GTK_TREE_MODEL(status_box->store)); |
1724 gtk_list_store_append(status_box->store, &(status_box->iter)); | 1724 gtk_list_store_append(status_box->store, &(status_box->iter)); |
1725 | |
1726 atk_object_set_name(gtk_widget_get_accessible(status_box->toggle_button), _("Status Selector")); | |
1725 | 1727 |
1726 gtk_container_add(GTK_CONTAINER(status_box->toggle_button), status_box->hbox); | 1728 gtk_container_add(GTK_CONTAINER(status_box->toggle_button), status_box->hbox); |
1727 gtk_box_pack_start(GTK_BOX(status_box->hbox), status_box->cell_view, TRUE, TRUE, 0); | 1729 gtk_box_pack_start(GTK_BOX(status_box->hbox), status_box->cell_view, TRUE, TRUE, 0); |
1728 gtk_box_pack_start(GTK_BOX(status_box->hbox), status_box->vsep, FALSE, FALSE, 0); | 1730 gtk_box_pack_start(GTK_BOX(status_box->hbox), status_box->vsep, FALSE, FALSE, 0); |
1729 gtk_box_pack_start(GTK_BOX(status_box->hbox), status_box->arrow, FALSE, FALSE, 0); | 1731 gtk_box_pack_start(GTK_BOX(status_box->hbox), status_box->arrow, FALSE, FALSE, 0); |