mirror of
https://gitlab.gnome.org/GNOME/libmks.git
synced 2024-12-22 05:35:21 +00:00
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:
parent
b4fade7fe1
commit
26f4b72708
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user