mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
picture: Set alternative text as description
Use the alternative text as accessible description for GtkPicture.
This commit is contained in:
parent
e2b3cbac23
commit
ed571ae68a
@ -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]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user