a11y: Don't advertise ROLE_MENU in submenuitems
We use submenuitems for all menuitems now. So they shouldn't be all advertised as menus. For the ones that do have submenus, we still advertise ROLE_MENU per the last patch.
This commit is contained in:
@ -46,8 +46,6 @@ gtk_submenu_item_accessible_initialize (AtkObject *obj,
|
|||||||
g_signal_connect (submenu, "add", G_CALLBACK (menu_item_add_gtk), NULL);
|
g_signal_connect (submenu, "add", G_CALLBACK (menu_item_add_gtk), NULL);
|
||||||
g_signal_connect (submenu, "remove", G_CALLBACK (menu_item_remove_gtk), NULL);
|
g_signal_connect (submenu, "remove", G_CALLBACK (menu_item_remove_gtk), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
obj->role = ATK_ROLE_MENU;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user