picture: Remove keep-aspect-ratio mention in the doc
authorMarco Melorio <marco.melorio@protonmail.com>
Sun, 17 Jul 2022 14:17:40 +0000 (16:17 +0200)
committerMarco Melorio <marco.melorio@protonmail.com>
Sun, 17 Jul 2022 14:21:53 +0000 (16:21 +0200)
We were still suggesting to use it in the main doc page. Suggest using
content-fit instead.

gtk/gtkpicture.c

index f58966e35dc3841390df4d99875bec637e3f8f08..fa0b300038f7a0807a258792debb570676e8c951 100644 (file)
  *
  * ## Sizing the paintable
  *
- * You can influence how the paintable is displayed inside the `GtkPicture`.
- * By turning off [property@Gtk.Picture:keep-aspect-ratio] you can allow the
- * paintable to get stretched. [property@Gtk.Picture:can-shrink] can be unset
- * to make sure that paintables are never made smaller than their ideal size -
- * but be careful if you do not know the size of the paintable in use (like
+ * You can influence how the paintable is displayed inside the `GtkPicture`
+ * by changing [property@Gtk.Picture:content-fit]. See [enum@Gtk.ContentFit]
+ * for details. [property@Gtk.Picture:can-shrink] can be unset to make sure
+ * that paintables are never made smaller than their ideal size - but
+ * 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
  * grow larger than the screen. And [property@GtkWidget:halign] and
  * [property@GtkWidget:valign] can be used to make sure the paintable doesn't