summaryrefslogtreecommitdiff
path: root/gtk/deprecated
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2014-12-11 17:49:02 +0100
committerLars Uebernickel <lars.uebernickel@canonical.com>2014-12-17 17:52:03 +0100
commitb44df22895c794733e15d19a977bc9c2d5a2bd78 (patch)
tree01e403140d85381875d32222f9ddb82c71e2d2a5 /gtk/deprecated
parent9032e0884328e3524c4203e12450dc79aea797e3 (diff)
downloadgtk+-b44df22895c794733e15d19a977bc9c2d5a2bd78.tar.gz
Menu items: force loading 16x16 icons
GtkIconTheme doesn't scale icons beyond the size specified in the theme anymore. This can result in arbitrarily large menu items when a theme only provides large icons. Force icons to always be 16x16 to ensure that menu items always have the same height. https://bugzilla.gnome.org/show_bug.cgi?id=741259
Diffstat (limited to 'gtk/deprecated')
-rw-r--r--gtk/deprecated/gtkimagemenuitem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/deprecated/gtkimagemenuitem.c b/gtk/deprecated/gtkimagemenuitem.c
index e308d51e7c..1b46ead863 100644
--- a/gtk/deprecated/gtkimagemenuitem.c
+++ b/gtk/deprecated/gtkimagemenuitem.c
@@ -1126,6 +1126,7 @@ gtk_image_menu_item_set_image (GtkImageMenuItem *image_menu_item,
"visible", show_image (image_menu_item),
"no-show-all", TRUE,
NULL);
+ gtk_image_set_pixel_size (GTK_IMAGE (image), 16);
g_object_notify (G_OBJECT (image_menu_item), "image");
}