diff options
author | Benjamin Otte <otte@redhat.com> | 2018-03-15 18:48:44 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2018-03-16 06:04:45 +0100 |
commit | 2935ef81286e8b70e1e03cf1eeca4666834c8490 (patch) | |
tree | 6516cefd7dfadefdb02f30a47162464b010c9343 /gtk/gtkimage.h | |
parent | c6541853ab6cd593733ab310119fbd95056b32fe (diff) | |
download | gtk+-2935ef81286e8b70e1e03cf1eeca4666834c8490.tar.gz |
image: Add gtk_image_set_can_shrink()
Images with that value set will request a 0x0 minimum size and scale
down their contents.
Diffstat (limited to 'gtk/gtkimage.h')
-rw-r--r-- | gtk/gtkimage.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkimage.h b/gtk/gtkimage.h index d9fa533136..6d5a8309b0 100644 --- a/gtk/gtkimage.h +++ b/gtk/gtkimage.h @@ -151,6 +151,9 @@ void gtk_image_set_icon_size (GtkImage *image, GDK_AVAILABLE_IN_ALL void gtk_image_set_keep_aspect_ratio (GtkImage *image, gboolean keep_aspect_ratio); +GDK_AVAILABLE_IN_ALL +void gtk_image_set_can_shrink (GtkImage *image, + gboolean can_shrink); GDK_AVAILABLE_IN_ALL GtkImageType gtk_image_get_storage_type (GtkImage *image); @@ -170,6 +173,8 @@ GDK_AVAILABLE_IN_ALL GtkIconSize gtk_image_get_icon_size (GtkImage *image); GDK_AVAILABLE_IN_ALL gboolean gtk_image_get_keep_aspect_ratio (GtkImage *image); +GDK_AVAILABLE_IN_ALL +gboolean gtk_image_get_can_shrink (GtkImage *image); G_END_DECLS |