This is an automated email from the git hooks/post-receive script. eric pushed a commit to branch master in repository xfce/xfdesktop.
commit db2337d1ff94830e4b9eb62fb84c40e4e1b7017c Author: Eric Koegel <eric.koe...@gmail.com> Date: Wed Apr 19 09:20:47 2017 +0300 Colorize the icon using style context --- src/xfdesktop-icon-view.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/xfdesktop-icon-view.c b/src/xfdesktop-icon-view.c index 387046d..5092bef 100644 --- a/src/xfdesktop-icon-view.c +++ b/src/xfdesktop-icon-view.c @@ -2990,7 +2990,18 @@ xfdesktop_icon_view_paint_icon(XfdesktopIconView *icon_view, GdkPixbuf *pix_free = NULL; if(state != GTK_STATE_FLAG_NORMAL) { - pix_free = exo_gdk_pixbuf_colorize(pix, >k_widget_get_style(widget)->base[state]); + GtkStyleContext *context; + GdkRGBA rgba; + GdkColor color; + + context = gtk_widget_get_style_context(widget); + gtk_style_context_get_color(context, state, &rgba); + + color.red = rgba.red * G_MAXUINT16; + color.green = rgba.green * G_MAXUINT16; + color.blue = rgba.blue * G_MAXUINT16; + + pix_free = exo_gdk_pixbuf_colorize(pix, &color); pix = pix_free; } -- To stop receiving notification emails like this one, please contact the administrator of this repository. _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits