diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index 91023ce39e..f964eb7495 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -938,6 +938,11 @@ 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, + g_list_append (NULL, priv->child), + -1); + gtk_button_set_child_type (button, ICON_CHILD); g_object_notify_by_pspec (G_OBJECT (button), props[PROP_ICON_NAME]); }