Commit 5d90ca35 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Set accessible parents of notebook children

Explicitly set the notebook page object as the accessible parent
of the page, otherwise, AtkObject follows the widget parents chain
and makes the notebook accessible the parent.
parent 3fb86e1c
...@@ -238,6 +238,8 @@ gtk_notebook_page_accessible_new (GtkNotebookAccessible *notebook, ...@@ -238,6 +238,8 @@ gtk_notebook_page_accessible_new (GtkNotebookAccessible *notebook,
atk_object->role = ATK_ROLE_PAGE_TAB; atk_object->role = ATK_ROLE_PAGE_TAB;
atk_object->layer = ATK_LAYER_WIDGET; atk_object->layer = ATK_LAYER_WIDGET;
atk_object_set_parent (gtk_widget_get_accessible (child), atk_object);
g_signal_connect (gtk_accessible_get_widget (page->notebook), g_signal_connect (gtk_accessible_get_widget (page->notebook),
"child-notify::tab-label", "child-notify::tab-label",
G_CALLBACK (notify_tab_label), page); G_CALLBACK (notify_tab_label), page);
...@@ -258,6 +260,7 @@ gtk_notebook_page_accessible_invalidate (GtkNotebookPageAccessible *page) ...@@ -258,6 +260,7 @@ gtk_notebook_page_accessible_invalidate (GtkNotebookPageAccessible *page)
atk_object_notify_state_change (obj, ATK_STATE_DEFUNCT, TRUE); atk_object_notify_state_change (obj, ATK_STATE_DEFUNCT, TRUE);
atk_object_set_parent (obj, NULL); atk_object_set_parent (obj, NULL);
page->notebook = NULL; page->notebook = NULL;
atk_object_set_parent (gtk_widget_get_accessible (page->child), NULL);
page->child = NULL; page->child = NULL;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment