From: Lukáš Tyrychtr Date: Tue, 14 Feb 2023 23:50:18 +0000 (+0000) Subject: Don't tell the screen reader that a button is related to an image which has no useful... X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~6^2~79^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d43724f5fc116bc632759727590981cf57704f41;p=gtk4.git Don't tell the screen reader that a button is related to an image which has no useful label --- diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index 2f98e70de4..aca4d337f8 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -969,10 +969,6 @@ gtk_button_set_icon_name (GtkButton *button, gtk_image_set_from_icon_name (GTK_IMAGE (priv->child), icon_name); } - gtk_accessible_update_relation (GTK_ACCESSIBLE (button), - GTK_ACCESSIBLE_RELATION_LABELLED_BY, priv->child, NULL, - -1); - gtk_button_set_child_type (button, ICON_CHILD); g_object_notify_by_pspec (G_OBJECT (button), props[PROP_ICON_NAME]); }