Commit ed571ae6 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

picture: Set alternative text as description

Use the alternative text as accessible description
for GtkPicture.
parent e2b3cbac
......@@ -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]);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment