[gtk+] icontheme: Use rgba() when loading symbolic icons
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] icontheme: Use rgba() when loading symbolic icons
- Date: Sat, 5 Oct 2013 12:02:22 +0000 (UTC)
commit 303cf53f3ffa5e70b6dc9a37dfae04e3299bc15e
Author: Benjamin Otte <otte redhat com>
Date: Sat Oct 5 13:53:25 2013 +0200
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 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index d912687..95235b1 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]