gtk-demo: Improve display of image sources

Make the images expand to fill the space.
This commit is contained in:
Matthias Clasen 2020-06-06 22:06:58 -04:00
parent bb7500e984
commit b9d7dab329

View File

@ -599,7 +599,7 @@ display_image (const char *resource)
{
GtkWidget *sw, *image;
image = gtk_image_new_from_resource (resource);
image = gtk_picture_new_for_resource (resource);
gtk_widget_set_halign (image, GTK_ALIGN_CENTER);
gtk_widget_set_valign (image, GTK_ALIGN_CENTER);
sw = gtk_scrolled_window_new (NULL, NULL);