summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElijah Newren <newren gmail com>2006-08-18 17:32:58 +0000
committerElijah Newren <newren@src.gnome.org>2006-08-18 17:32:58 +0000
commit1f5130dc9358ace32829d29d439d552f8c0d5429 (patch)
treeb704c62070e919a54b9f3004ece24f67a75e21cd /src
parent1d92dcdadd9e44218def67194ec8b0b30c59ab2c (diff)
downloadmetacity-1f5130dc9358ace32829d29d439d552f8c0d5429.tar.gz
Patch from Willie Walker to restore the part of the patch that I should
2006-08-18 Elijah Newren <newren gmail com> * src/tabpopup.c (meta_ui_tab_popup_new): Patch from Willie Walker to restore the part of the patch that I should not have reverted in #123372, in order to fix accessibility. #350624
Diffstat (limited to 'src')
-rw-r--r--src/tabpopup.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tabpopup.c b/src/tabpopup.c
index 1ffc3632..2ef1f05f 100644
--- a/src/tabpopup.c
+++ b/src/tabpopup.c
@@ -222,6 +222,7 @@ meta_ui_tab_popup_new (const MetaTabEntry *entries,
GList *tmp;
GtkWidget *frame;
int max_label_width; /* the actual max width of the labels we create */
+ AtkObject *obj;
GdkScreen *screen;
int screen_width;
@@ -288,6 +289,14 @@ meta_ui_tab_popup_new (const MetaTabEntry *entries,
table);
popup->label = gtk_label_new ("");
+
+ /* Set the accessible role of the label to a status bar so it
+ * will emit name changed events that can be used by screen
+ * readers.
+ */
+ obj = gtk_widget_get_accessible (popup->label);
+ atk_object_set_role (obj, ATK_ROLE_STATUSBAR);
+
gtk_misc_set_padding (GTK_MISC (popup->label), 3, 3);
gtk_box_pack_end (GTK_BOX (vbox), popup->label, FALSE, FALSE, 0);