mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 15:14:17 +00:00
Fix menu item accessible
The menu shell is not a direct parent anymore.
This commit is contained in:
parent
0a33d74c1b
commit
fcdea03796
@ -527,7 +527,7 @@ gtk_menu_item_accessible_get_keybinding (AtkAction *action,
|
|||||||
if (gtk_bin_get_child (GTK_BIN (temp_item)) == NULL)
|
if (gtk_bin_get_child (GTK_BIN (temp_item)) == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
parent = gtk_widget_get_parent (temp_item);
|
parent = gtk_widget_get_ancestor (temp_item, GTK_TYPE_MENU_SHELL);
|
||||||
if (!parent)
|
if (!parent)
|
||||||
/* parent can be NULL when activating a window from the panel */
|
/* parent can be NULL when activating a window from the panel */
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -586,7 +586,7 @@ gtk_menu_item_accessible_get_keybinding (AtkAction *action,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
parent = gtk_widget_get_parent (item);
|
parent = gtk_widget_get_ancestor (item, GTK_TYPE_MENU_SHELL);
|
||||||
if (GTK_IS_MENU (parent))
|
if (GTK_IS_MENU (parent))
|
||||||
{
|
{
|
||||||
child = find_item_label (item);
|
child = find_item_label (item);
|
||||||
|
Loading…
Reference in New Issue
Block a user