summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexei Sorokin <[email protected]>2017-01-24 22:32:01 +0300
committermonsta <[email protected]>2017-01-26 15:56:05 +0300
commitfdc99e22736abacfbd017dec1ff1fc94b633ee90 (patch)
tree5c66ba442ba31179a046e84777637e0714f33a68
parente6b4fbeeab7f412fb656f76d6137ae00795e2b49 (diff)
downloadmate-control-center-fdc99e22736abacfbd017dec1ff1fc94b633ee90.tar.bz2
mate-control-center-fdc99e22736abacfbd017dec1ff1fc94b633ee90.tar.xz
libslab: force the icon size
If an icon only provides some huge sizes, not doing that breaks the layout.
-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))
{