[Xfce4-commits] [xfce/thunar] 45/46: Fix icon sizing issues

noreply at xfce.org noreply at xfce.org
Tue Aug 15 02:35:53 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 0382d8ee803efec6b4179580decebbad8555f531
Author: Andre Miranda <andre42m at gmail.com>
Date:   Tue Aug 1 22:49:57 2017 -0300

    Fix icon sizing issues
---
 thunar/thunar-icon-factory.c            | 2 +-
 thunar/thunar-shortcuts-icon-renderer.c | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/thunar/thunar-icon-factory.c b/thunar/thunar-icon-factory.c
index d660dc0..fab2c1c 100644
--- a/thunar/thunar-icon-factory.c
+++ b/thunar/thunar-icon-factory.c
@@ -495,7 +495,7 @@ thunar_icon_factory_lookup_icon (ThunarIconFactory *factory,
       else
         {
           /* check if the icon theme contains an icon of that name */
-          icon_info = gtk_icon_theme_lookup_icon (factory->icon_theme, name, size, 0);
+          icon_info = gtk_icon_theme_lookup_icon (factory->icon_theme, name, size, GTK_ICON_LOOKUP_FORCE_SIZE);
           if (G_LIKELY (icon_info != NULL))
             {
               /* try to load the pixbuf from the icon info */
diff --git a/thunar/thunar-shortcuts-icon-renderer.c b/thunar/thunar-shortcuts-icon-renderer.c
index 3816ffa..0b7b451 100644
--- a/thunar/thunar-shortcuts-icon-renderer.c
+++ b/thunar/thunar-shortcuts-icon-renderer.c
@@ -237,7 +237,8 @@ thunar_shortcuts_icon_renderer_render (GtkCellRenderer     *renderer,
         gicon = thunar_device_get_icon (shortcuts_icon_renderer->device);
 
       icon_info = gtk_icon_theme_lookup_by_gicon (icon_theme, gicon, cell_area->width, 
-                                                  GTK_ICON_LOOKUP_USE_BUILTIN);
+                                                  GTK_ICON_LOOKUP_USE_BUILTIN |
+                                                  GTK_ICON_LOOKUP_FORCE_SIZE);
       g_object_unref (gicon);
 
       /* try to load the icon */

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


More information about the Xfce4-commits mailing list