[Xfce4-commits] [xfce/thunar] 01/01: Use 'folder' icon instead of 'inode-directory'

noreply at xfce.org noreply at xfce.org
Tue Aug 15 02:48:22 CEST 2017


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/thunar.

commit 446cd10146dc129bf7cca8d73eef43733476ba05
Author: Andre Miranda <andre42m at gmail.com>
Date:   Wed Aug 9 22:15:26 2017 -0300

    Use 'folder' icon instead of 'inode-directory'
    
    Actually this is a workaround for icon themes such as Adwaita
    that have no 'inode-directory' icon. Previously on gtk2,
    gtk_icon_theme_has_icon returned FALSE for 'inode-directory'
    while using Adwaita, this is not the case for gtk3, probably
    because it falls back to Gnome icon theme, not really desired.
---
 thunar/thunar-icon-factory.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/thunar/thunar-icon-factory.c b/thunar/thunar-icon-factory.c
index fab2c1c..28a3398 100644
--- a/thunar/thunar-icon-factory.c
+++ b/thunar/thunar-icon-factory.c
@@ -494,6 +494,10 @@ thunar_icon_factory_lookup_icon (ThunarIconFactory *factory,
         }
       else
         {
+          /* FIXME: is there a better approach? */
+          if (g_strcmp0 (name, "inode-directory") == 0)
+            name = "folder";
+
           /* check if the icon theme contains an icon of that name */
           icon_info = gtk_icon_theme_lookup_icon (factory->icon_theme, name, size, GTK_ICON_LOOKUP_FORCE_SIZE);
           if (G_LIKELY (icon_info != NULL))

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


More information about the Xfce4-commits mailing list