From 303cf53f3ffa5e70b6dc9a37dfae04e3299bc15e Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 5 Oct 2013 13:53:25 +0200 Subject: [PATCH] icontheme: Use rgba() when loading symbolic icons This way, we correctly pass on translucency information. Note: This currently requires librsvg master. --- gtk/gtkicontheme.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index d912687b2b..95235b1d72 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -4081,10 +4081,11 @@ static gchar * gdk_rgba_to_css (const GdkRGBA *color) { /* drop alpha for now, since librsvg does not understand rgba() */ - return g_strdup_printf ("rgb(%d,%d,%d)", + return g_strdup_printf ("rgba(%d,%d,%d,%g)", (gint)(color->red * 255), (gint)(color->green * 255), - (gint)(color->blue * 255)); + (gint)(color->blue * 255), + color->alpha); } static void