[Xfce4-commits] [xfce/thunar] 01/01: replaced gtk3 deprecation "gtk_style_render_icon" - part II moved call of new method to right position in order to have effect on the icon, not on the background

noreply at xfce.org noreply at xfce.org
Fri Nov 24 00:00:49 CET 2017


This is an automated email from the git hooks/post-receive script.

a   l   e   x       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 a3533724bc321e3aa48ce490f79f59c1a9bd0541
Author: Alexander Schwinn <acs82 at gmx.de>
Date:   Thu Nov 23 23:57:50 2017 +0100

    replaced gtk3 deprecation "gtk_style_render_icon" - part II
    moved call of new method to right position in order to have effect on
    the icon, not on the background
---
 thunar/thunar-icon-renderer.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/thunar/thunar-icon-renderer.c b/thunar/thunar-icon-renderer.c
index 5338ef4..3d5f267 100644
--- a/thunar/thunar-icon-renderer.c
+++ b/thunar/thunar-icon-renderer.c
@@ -471,14 +471,14 @@ thunar_icon_renderer_render (GtkCellRenderer     *renderer,
         }
       g_object_unref (G_OBJECT (clipboard));
 
-      /* check if we should render an insensitive icon */
-      if (G_UNLIKELY (gtk_widget_get_state_flags (widget) == GTK_STATE_FLAG_INSENSITIVE || !gtk_cell_renderer_get_sensitive (renderer)))
-        thunar_icon_renderer_color_insensitive(cr,widget);
-
       /* render the invalid parts of the icon */
       thunar_gdk_cairo_set_source_pixbuf (cr, icon, icon_area.x, icon_area.y);
       cairo_paint_with_alpha (cr, alpha);
 
+      /* check if we should render an insensitive icon */
+      if (G_UNLIKELY (gtk_widget_get_state_flags (widget) == GTK_STATE_FLAG_INSENSITIVE || !gtk_cell_renderer_get_sensitive (renderer)))
+        thunar_icon_renderer_color_insensitive(cr,widget);
+
       /* paint the lighten mask */
       if (color_lighten)
         thunar_icon_renderer_color_lighten (cr, widget);

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


More information about the Xfce4-commits mailing list