From: Matthias Clasen Date: Tue, 7 May 2019 02:20:29 +0000 (+0000) Subject: a11y: Stop using child-notify X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~21^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=77b781726624ba43e3672c856f13560dd5c23e90;p=gtk4.git a11y: Stop using child-notify This was showing up in the accessibility tests failing. --- diff --git a/gtk/a11y/gtknotebookpageaccessible.c b/gtk/a11y/gtknotebookpageaccessible.c index 0f57c737b8..d79b603aba 100644 --- a/gtk/a11y/gtknotebookpageaccessible.c +++ b/gtk/a11y/gtknotebookpageaccessible.c @@ -243,6 +243,8 @@ gtk_notebook_page_accessible_new (GtkNotebookAccessible *notebook, GObject *object; AtkObject *atk_object; GtkNotebookPageAccessible *page; + GtkNotebook *nb; + GtkWidget *notebook_page; g_return_val_if_fail (GTK_IS_NOTEBOOK_ACCESSIBLE (notebook), NULL); g_return_val_if_fail (GTK_WIDGET (child), NULL); @@ -258,9 +260,11 @@ gtk_notebook_page_accessible_new (GtkNotebookAccessible *notebook, atk_object->layer = ATK_LAYER_WIDGET; atk_object_set_parent (gtk_widget_get_accessible (child), atk_object); + nb = GTK_NOTEBOOK (gtk_accessible_get_widget (page->priv->notebook)); + notebook_page = gtk_notebook_get_page (nb, child); - g_signal_connect (gtk_accessible_get_widget (page->priv->notebook), - "child-notify::tab-label", + g_signal_connect (notebook_page, + "notify::tab-label", G_CALLBACK (notify_tab_label), page); return atk_object;