icontheme: Use rgba() when loading symbolic icons

This way, we correctly pass on translucency information. Note: This
currently requires librsvg master.
This commit is contained in:
Benjamin Otte 2013-10-05 13:53:25 +02:00
parent 0e6a9858e1
commit 303cf53f3f

View File

@ -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