[gtk/wip/otte/for-master] picture: Setting can-shrink requires a resize
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/for-master] picture: Setting can-shrink requires a resize
- Date: Fri, 5 Nov 2021 19:51:30 +0000 (UTC)
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]