Don't tell the screen reader that a button is related to an image which has no useful label

This commit is contained in:
Lukáš Tyrychtr
2023-02-14 23:50:18 +00:00
committed by Mat
parent c8b4f0c8e8
commit d84dab39b9

View File

@@ -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]);
}