summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-03-15 18:10:01 +0100
committerBenjamin Otte <otte@redhat.com>2018-03-16 06:04:45 +0100
commitc6541853ab6cd593733ab310119fbd95056b32fe (patch)
treefea61c173419b1f2526a66afa733cd3bd6b56ed0 /docs
parent0a08c0388587500930a684d3bcf7d26d7dc7bd52 (diff)
downloadgtk+-c6541853ab6cd593733ab310119fbd95056b32fe.tar.gz
image: Add gtk_image_set_keep_aspect_ratio()
If set, the image will draw its contents while keeping their aspect ratio. That means empty areas show up on the top/bottom or left/right. Also move the special-case snapshotting code for icons to GtkIconHelper. That's where it belongs.
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/gtk/gtk4-sections.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index a653a7558a..9bfaf9bad5 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -1505,6 +1505,8 @@ gtk_image_set_pixel_size
gtk_image_get_pixel_size
gtk_image_set_icon_size
gtk_image_get_icon_size
+gtk_image_set_keep_aspect_ratio
+gtk_image_get_keep_aspect_ratio
<SUBSECTION Standard>
GTK_IMAGE
GTK_IS_IMAGE