[Xfce4-commits] [xfce/xfdesktop] 01/01: Force menu icon size
noreply at xfce.org
noreply at xfce.org
Fri Dec 7 00:44:07 CET 2018
This is an automated email from the git hooks/post-receive script.
a n d r e 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/xfdesktop.
commit b5796f813f2ab896efc4e7c3bc207a8eca4b0cb1
Author: Andre Miranda <andreldm at xfce.org>
Date: Thu Dec 6 20:43:28 2018 -0300
Force menu icon size
---
common/xfdesktop-common.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/common/xfdesktop-common.c b/common/xfdesktop-common.c
index 2f8d80a..ac92920 100644
--- a/common/xfdesktop-common.c
+++ b/common/xfdesktop-common.c
@@ -218,7 +218,10 @@ create_menu_item(GtkWidget* label, GtkWidget* image)
gtk_widget_set_halign (label, GTK_ALIGN_START);
/* Add the image and label to the box, add the box to the menu item */
- if(image && GTK_IS_WIDGET(image)) {
+ if (image && GTK_IS_WIDGET(image)) {
+ if (GTK_IS_IMAGE (image))
+ gtk_image_set_pixel_size (GTK_IMAGE (image), 16);
+
/* only add the widget if it exists */
gtk_widget_show (image);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list