set_can_shrink


Description:

public void set_can_shrink (bool can_shrink)

If set to true, the this can be made smaller than its contents.

The contents will then be scaled down when rendering.

If you want to still force a minimum size manually, consider using [method@Gtk.Widget.set_size_request].

Also of note is that a similar function for growing does not exist because the grow behavior can be controlled via [ method@Gtk.Widget.set_halign] and [method@Gtk.Widget.set_valign].

Parameters:

this

a `GtkPicture`

can_shrink

if this can be made smaller than its contents