[gtk: 1/2] picture: Remove keep-aspect-ratio mention in the doc
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/2] picture: Remove keep-aspect-ratio mention in the doc
- Date: Sun, 17 Jul 2022 15:00:20 +0000 (UTC)
commit 8376f5c9fab06d35dc7ec8f48ff894f09e975792
Author: Marco Melorio <marco melorio protonmail com>
Date: Sun Jul 17 16:17:40 2022 +0200
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.
gtk/gtkpicture.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkpicture.c b/gtk/gtkpicture.c
index f58966e35d..fa0b300038 100644
--- a/gtk/gtkpicture.c
+++ b/gtk/gtkpicture.c
@@ -63,11 +63,11 @@
*
* ## 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]