Merge branch 'picture-ratio-redraw' into 'master'

picture: Setting keep-aspect-ratio requires a redraw

See merge request GNOME/gtk!4172
This commit is contained in:
Matthias Clasen 2021-11-18 03:43:54 +00:00
commit 74c6b8e9bc

View File

@ -839,6 +839,9 @@ gtk_picture_set_keep_aspect_ratio (GtkPicture *self,
return;
self->keep_aspect_ratio = keep_aspect_ratio;
gtk_widget_queue_draw (GTK_WIDGET (self));
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_KEEP_ASPECT_RATIO]);
}