[Xfce4-commits] [xfce/xfdesktop] 01/01: Add padding to custom actions without icon (Bug #14628)

noreply at xfce.org noreply at xfce.org
Mon Nov 4 00:27:59 CET 2019


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       x   f   c   e   -   4   .   1   4   
   in repository xfce/xfdesktop.

commit 2175e5822ed40161cd2e647578a3a6c6072d8993
Author: Andre Miranda <andreldm at xfce.org>
Date:   Sun Nov 3 20:26:08 2019 -0300

    Add padding to custom actions without icon (Bug #14628)
---
 src/xfdesktop-file-icon-manager.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/xfdesktop-file-icon-manager.c b/src/xfdesktop-file-icon-manager.c
index 22ff35c..f46429c 100644
--- a/src/xfdesktop-file-icon-manager.c
+++ b/src/xfdesktop-file-icon-manager.c
@@ -1300,10 +1300,8 @@ xfdesktop_menu_create_menu_item_from_thunarx_menu_item (GObject *item)
                   "icon", &icon_str,
                   NULL);
 
-    if (icon_str != NULL) {
-        GIcon *icon = g_icon_new_for_string (icon_str, NULL);
-        img = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_MENU);
-    }
+    img = gtk_image_new_from_icon_name (icon_str == NULL ? "" : icon_str,
+                                        GTK_ICON_SIZE_MENU);
 
     mi = xfdesktop_menu_create_menu_item_with_mnemonic (label, img);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list