[Xfce4-commits] [xfce/xfce4-panel] 01/01: launcher: Make sure icons are not oversize
noreply at xfce.org
noreply at xfce.org
Wed Jan 3 01:37:18 CET 2018
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-panel.
commit 880f91a20d6c61df154aac44e2e6d76157162277
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Wed Jan 3 01:37:02 2018 +0100
launcher: Make sure icons are not oversize
---
plugins/launcher/launcher.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/plugins/launcher/launcher.c b/plugins/launcher/launcher.c
index ec27955..f35eea4 100644
--- a/plugins/launcher/launcher.c
+++ b/plugins/launcher/launcher.c
@@ -1618,7 +1618,10 @@ launcher_plugin_menu_construct (LauncherPlugin *plugin)
image = gtk_image_new_from_pixbuf (pix);
}
else
- image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_MENU);
+ {
+ image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_MENU);
+ gtk_image_set_pixel_size (GTK_IMAGE (image), 16);
+ }
gtk_box_pack_start (GTK_BOX (box), image, FALSE, TRUE, 3);
gtk_widget_show (image);
if (pix)
@@ -1767,9 +1770,11 @@ launcher_plugin_button_update (LauncherPlugin *plugin)
gtk_image_set_from_pixbuf (GTK_IMAGE (plugin->child), pix);
g_object_unref (G_OBJECT (pix));
}
- else
+ else {
gtk_image_set_from_icon_name (GTK_IMAGE (plugin->child), icon_name,
icon_size);
+ gtk_image_set_pixel_size (GTK_IMAGE (plugin->child), 16);
+ }
}
panel_utils_set_atk_info (plugin->button,
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list