picture: Queue a redraw when not resizing

When changing the code to do the resize only when the size changed, I
forgot to queue a draw when the size did not change.

Fixes: 5031f30f28
Related: !7786
This commit is contained in:
Benjamin Otte 2024-10-07 11:34:10 +02:00 committed by Matthias Clasen
parent b277d9a555
commit d1725291a1

View File

@ -875,6 +875,8 @@ gtk_picture_set_paintable (GtkPicture *self,
if (size_changed)
gtk_widget_queue_resize (GTK_WIDGET (self));
else
gtk_widget_queue_draw (GTK_WIDGET (self));
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_PAINTABLE]);