[gtk/wip/otte/for-master] picture: Setting can-shrink requires a resize



commit c4e5242be0664a5e94a40657c5644cdeadc0097e
Author: Benjamin Otte <otte redhat com>
Date:   Fri Nov 5 20:51:00 2021 +0100

    picture: Setting can-shrink requires a resize
    
    So queue one.

 gtk/gtkpicture.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gtk/gtkpicture.c b/gtk/gtkpicture.c
index 7694888c68..6821ecacfb 100644
--- a/gtk/gtkpicture.c
+++ b/gtk/gtkpicture.c
@@ -884,6 +884,9 @@ gtk_picture_set_can_shrink (GtkPicture *self,
     return;
 
   self->can_shrink = can_shrink;
+
+  gtk_widget_queue_resize (GTK_WIDGET (self));
+
   g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_CAN_SHRINK]);
 }
 


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