gtk-demo: Add alternative text to a GtkPicture

This lets us text GtkPicture a11y support.
This commit is contained in:
Matthias Clasen 2020-10-22 00:05:50 -04:00
parent ed571ae68a
commit ef7499a31b

View File

@ -414,6 +414,7 @@ do_images (GtkWidget *do_widget)
* will create the pixbuf and fill it in. * will create the pixbuf and fill it in.
*/ */
picture = gtk_picture_new (); picture = gtk_picture_new ();
gtk_picture_set_alternative_text (GTK_PICTURE (picture), "A slowly loading image");
gtk_frame_set_child (GTK_FRAME (frame), picture); gtk_frame_set_child (GTK_FRAME (frame), picture);
start_progressive_loading (picture); start_progressive_loading (picture);