picture: Set alternative text as description

Use the alternative text as accessible description
for GtkPicture.
This commit is contained in:
Matthias Clasen 2020-10-22 00:04:52 -04:00
parent e2b3cbac23
commit ed571ae68a

View File

@ -969,6 +969,11 @@ gtk_picture_set_alternative_text (GtkPicture *self,
g_free (self->alternative_text);
self->alternative_text = g_strdup (alternative_text);
gtk_accessible_update_property (GTK_ACCESSIBLE (self),
GTK_ACCESSIBLE_PROPERTY_DESCRIPTION, alternative_text,
-1);
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_ALTERNATIVE_TEXT]);
}