[gtk: 1/2] picture: Setting keep-aspect-ratio requires a redraw




commit d3347e64ba0d826ddefbcdbc2d37111791508875
Author: Marco Melorio <marco melorio protonmail com>
Date:   Thu Nov 18 02:39:15 2021 +0100

    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]);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]