summaryrefslogtreecommitdiff
path: root/gtk/gtkiconhelper.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-07-04 05:12:53 +0200
committerBenjamin Otte <otte@redhat.com>2018-07-04 06:15:33 +0200
commite1b6496af760d4b93a2a17c80816dc1a3348b97c (patch)
treebf46babf95e719bd19da5fc3a472d9ab52a4303d /gtk/gtkiconhelper.c
parent14620423e840729e9a084678e465c52885cf4737 (diff)
downloadgtk+-e1b6496af760d4b93a2a17c80816dc1a3348b97c.tar.gz
image: size request is always CONSTANT_SIZE
It's always -gtk-icon-size in both directions, even for paintables. There's no width-for-height happening.
Diffstat (limited to 'gtk/gtkiconhelper.c')
-rw-r--r--gtk/gtkiconhelper.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c
index a817eed679..502907e5fd 100644
--- a/gtk/gtkiconhelper.c
+++ b/gtk/gtkiconhelper.c
@@ -426,22 +426,6 @@ gtk_icon_helper_new (GtkCssNode *css_node,
return self;
}
-GtkSizeRequestMode
-gtk_icon_helper_get_request_mode (GtkIconHelper *self)
-{
- switch (gtk_image_definition_get_storage_type (self->def))
- {
- case GTK_IMAGE_PAINTABLE:
- return GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH;
-
- case GTK_IMAGE_ICON_NAME:
- case GTK_IMAGE_GICON:
- case GTK_IMAGE_EMPTY:
- default:
- return GTK_SIZE_REQUEST_CONSTANT_SIZE;
- }
-}
-
int
gtk_icon_helper_get_size (GtkIconHelper *self)
{