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
This commit is contained in:
Bilal Elmoussaoui 2023-04-13 15:12:44 +02:00
parent b4fade7fe1
commit 26f4b72708

View File

@ -456,7 +456,7 @@ mks_display_picture_measure (GtkWidget *widget,
{ {
MksDisplayPicture *self = (MksDisplayPicture *)widget; MksDisplayPicture *self = (MksDisplayPicture *)widget;
GdkPaintable *paintable; GdkPaintable *paintable;
double min_width, min_height, nat_width, nat_height; double nat_width, nat_height;
int default_width; int default_width;
int default_height; int default_height;
@ -480,11 +480,6 @@ mks_display_picture_measure (GtkWidget *widget,
if (default_height <= 0) if (default_height <= 0)
default_height = 480; default_height = 480;
gdk_paintable_compute_concrete_size (paintable,
0, 0,
default_width, default_height,
&min_width, &min_height);
if (orientation == GTK_ORIENTATION_HORIZONTAL) if (orientation == GTK_ORIENTATION_HORIZONTAL)
{ {
gdk_paintable_compute_concrete_size (paintable, gdk_paintable_compute_concrete_size (paintable,