[gtk/global-coords] Fix menu item accessible
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/global-coords] Fix menu item accessible
- Date: Sat, 1 Jun 2019 03:40:14 +0000 (UTC)
commit fcdea037964ea252991fb21ad52d959fab684eb9
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jun 1 03:39:12 2019 +0000
Fix menu item accessible
The menu shell is not a direct parent anymore.
gtk/a11y/gtkmenuitemaccessible.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/a11y/gtkmenuitemaccessible.c b/gtk/a11y/gtkmenuitemaccessible.c
index 01b13aeed4..fe5dbff2cc 100644
--- a/gtk/a11y/gtkmenuitemaccessible.c
+++ b/gtk/a11y/gtkmenuitemaccessible.c
@@ -527,7 +527,7 @@ gtk_menu_item_accessible_get_keybinding (AtkAction *action,
if (gtk_bin_get_child (GTK_BIN (temp_item)) == NULL)
return NULL;
- parent = gtk_widget_get_parent (temp_item);
+ parent = gtk_widget_get_ancestor (temp_item, GTK_TYPE_MENU_SHELL);
if (!parent)
/* parent can be NULL when activating a window from the panel */
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))
{
child = find_item_label (item);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]