diff options
author | Benjamin Otte <otte@redhat.com> | 2013-10-05 13:53:25 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2013-10-05 13:57:51 +0200 |
commit | 303cf53f3ffa5e70b6dc9a37dfae04e3299bc15e (patch) | |
tree | 07d7a4764acf08f0014bd07f90530cd6c082f037 /gtk/gtkicontheme.c | |
parent | 0e6a9858e1801846d9fd5fc5bcb59eee6e65827f (diff) | |
download | gtk+-303cf53f3ffa5e70b6dc9a37dfae04e3299bc15e.tar.gz |
icontheme: Use rgba() when loading symbolic icons
This way, we correctly pass on translucency information. Note: This
currently requires librsvg master.
Diffstat (limited to 'gtk/gtkicontheme.c')
-rw-r--r-- | gtk/gtkicontheme.c | 5 |
1 files 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 |