[gtk/matthiasc/for-master: 6/7] gtk-demo: Add alternative text to a GtkPicture
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 6/7] gtk-demo: Add alternative text to a GtkPicture
- Date: Thu, 22 Oct 2020 04:24:41 +0000 (UTC)
commit 17852ecfdc12586025ca6185e9be853f0fcdc466
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Oct 22 00:05:50 2020 -0400
gtk-demo: Add alternative text to a GtkPicture
This lets us text GtkPicture a11y support.
demos/gtk-demo/images.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/demos/gtk-demo/images.c b/demos/gtk-demo/images.c
index 43d138101c..e13302eb53 100644
--- a/demos/gtk-demo/images.c
+++ b/demos/gtk-demo/images.c
@@ -414,6 +414,7 @@ do_images (GtkWidget *do_widget)
* will create the pixbuf and fill it in.
*/
picture = gtk_picture_new ();
+ gtk_picture_set_alternative_text (GTK_PICTURE (picture), "A slowly loading image");
gtk_frame_set_child (GTK_FRAME (frame), picture);
start_progressive_loading (picture);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]