From d3347e64ba0d826ddefbcdbc2d37111791508875 Mon Sep 17 00:00:00 2001 From: Marco Melorio Date: Thu, 18 Nov 2021 02:39:15 +0100 Subject: [PATCH] picture: Setting keep-aspect-ratio requires a redraw --- gtk/gtkpicture.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/gtkpicture.c b/gtk/gtkpicture.c index 6821ecacfb..48157d3e14 100644 --- a/gtk/gtkpicture.c +++ b/gtk/gtkpicture.c @@ -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]); }