summaryrefslogtreecommitdiff
path: root/libslab/mate-utils.c
diff options
context:
space:
mode:
authorAlexei Sorokin <[email protected]>2017-01-24 22:32:01 +0300
committerAlexei Sorokin <[email protected]>2017-01-24 22:32:01 +0300
commit40fe63c81f5c4e7658da041afa3ae4dd3c3956da (patch)
treedbb5e6ccf2c8baf0ab07c994c4b47700d2129917 /libslab/mate-utils.c
parentec26fcb96d1d4b8433cff656cc2df8da1de55e4d (diff)
downloadmate-control-center-40fe63c81f5c4e7658da041afa3ae4dd3c3956da.tar.bz2
mate-control-center-40fe63c81f5c4e7658da041afa3ae4dd3c3956da.tar.xz
libslab: force the icon size
If an icon only provides some huge sizes, not doing that breaks the layout.
Diffstat (limited to 'libslab/mate-utils.c')
-rw-r--r--libslab/mate-utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libslab/mate-utils.c b/libslab/mate-utils.c
index 7eb31a05..505d5325 100644
--- a/libslab/mate-utils.c
+++ b/libslab/mate-utils.c
@@ -21,6 +21,7 @@ load_image_by_id (GtkImage * image, GtkIconSize size, const gchar * image_id)
id = g_strdup (image_id);
gtk_icon_size_lookup (size, &width, &height);
+ gtk_image_set_pixel_size (image, width);
if (g_path_is_absolute (id))
{