mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
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
This commit is contained in:
parent
1d92dcdadd
commit
1f5130dc93
@ -1,3 +1,9 @@
|
|||||||
|
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
|
||||||
|
|
||||||
2006-08-09 Elijah Newren <newren gmail com>
|
2006-08-09 Elijah Newren <newren gmail com>
|
||||||
|
|
||||||
* src/window.c (intervening_user_event_occurred): Vytautus Liuolia
|
* src/window.c (intervening_user_event_occurred): Vytautus Liuolia
|
||||||
|
@ -222,6 +222,7 @@ meta_ui_tab_popup_new (const MetaTabEntry *entries,
|
|||||||
GList *tmp;
|
GList *tmp;
|
||||||
GtkWidget *frame;
|
GtkWidget *frame;
|
||||||
int max_label_width; /* the actual max width of the labels we create */
|
int max_label_width; /* the actual max width of the labels we create */
|
||||||
|
AtkObject *obj;
|
||||||
GdkScreen *screen;
|
GdkScreen *screen;
|
||||||
int screen_width;
|
int screen_width;
|
||||||
|
|
||||||
@ -288,6 +289,14 @@ meta_ui_tab_popup_new (const MetaTabEntry *entries,
|
|||||||
table);
|
table);
|
||||||
|
|
||||||
popup->label = gtk_label_new ("");
|
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_misc_set_padding (GTK_MISC (popup->label), 3, 3);
|
||||||
|
|
||||||
gtk_box_pack_end (GTK_BOX (vbox), popup->label, FALSE, FALSE, 0);
|
gtk_box_pack_end (GTK_BOX (vbox), popup->label, FALSE, FALSE, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user