From 26f4b72708507a987fcfe58a05184c67231cd88b Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Thu, 13 Apr 2023 15:12:44 +0200 Subject: [PATCH] display-picture: Don't compute min-width/min-height They are not useful for us as we would like the user to be able to shrink the picture. It is a leftover of migrating from GtkPicture --- lib/mks-display-picture.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/mks-display-picture.c b/lib/mks-display-picture.c index 8486343..0fecd16 100644 --- a/lib/mks-display-picture.c +++ b/lib/mks-display-picture.c @@ -456,7 +456,7 @@ mks_display_picture_measure (GtkWidget *widget, { MksDisplayPicture *self = (MksDisplayPicture *)widget; GdkPaintable *paintable; - double min_width, min_height, nat_width, nat_height; + double nat_width, nat_height; int default_width; int default_height; @@ -480,11 +480,6 @@ mks_display_picture_measure (GtkWidget *widget, if (default_height <= 0) default_height = 480; - gdk_paintable_compute_concrete_size (paintable, - 0, 0, - default_width, default_height, - &min_width, &min_height); - if (orientation == GTK_ORIENTATION_HORIZONTAL) { gdk_paintable_compute_concrete_size (paintable,