[gtk/matthiasc/for-master: 5/7] picture: Set alternative text as description
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 5/7] picture: Set alternative text as description
- Date: Thu, 22 Oct 2020 04:24:40 +0000 (UTC)
commit ad68660df9471d5e7825ebb2d519f05cb16edcf7
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Oct 22 00:04:52 2020 -0400
picture: Set alternative text as description
Use the alternative text as accessible description
for GtkPicture.
gtk/gtkpicture.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/gtk/gtkpicture.c b/gtk/gtkpicture.c
index fc030fd80d..78e5ba449a 100644
--- a/gtk/gtkpicture.c
+++ b/gtk/gtkpicture.c
@@ -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]);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]