picture: Remove keep-aspect-ratio mention in the doc

We were still suggesting to use it in the main doc page. Suggest using
content-fit instead.
This commit is contained in:
Marco Melorio 2022-07-17 16:17:40 +02:00
parent 1d94c75a78
commit 8376f5c9fa

View File

@ -63,11 +63,11 @@
* *
* ## Sizing the paintable * ## Sizing the paintable
* *
* You can influence how the paintable is displayed inside the `GtkPicture`. * You can influence how the paintable is displayed inside the `GtkPicture`
* By turning off [property@Gtk.Picture:keep-aspect-ratio] you can allow the * by changing [property@Gtk.Picture:content-fit]. See [enum@Gtk.ContentFit]
* paintable to get stretched. [property@Gtk.Picture:can-shrink] can be unset * for details. [property@Gtk.Picture:can-shrink] can be unset to make sure
* to make sure that paintables are never made smaller than their ideal size - * that paintables are never made smaller than their ideal size - but
* but be careful if you do not know the size of the paintable in use (like * be careful if you do not know the size of the paintable in use (like
* when displaying user-loaded images). This can easily cause the picture to * when displaying user-loaded images). This can easily cause the picture to
* grow larger than the screen. And [property@GtkWidget:halign] and * grow larger than the screen. And [property@GtkWidget:halign] and
* [property@GtkWidget:valign] can be used to make sure the paintable doesn't * [property@GtkWidget:valign] can be used to make sure the paintable doesn't