[gtk+] Make symbolic icons work again
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Make symbolic icons work again
- Date: Mon, 17 Jan 2011 14:58:23 +0000 (UTC)
commit 9f895aa3ad2cd03f942d265d0dadb6b0a1b8fb2b
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 17 09:57:35 2011 -0500
Make symbolic icons work again
Work around https://bugzilla.gnome.org/show_bug.cgi?id=639750
gtk/gtkicontheme.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index 7a32269..cfce79f 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -3071,11 +3071,11 @@ gdk_color_to_css (GdkColor *color)
static gchar *
gdk_rgba_to_css (GdkRGBA *color)
{
- return g_strdup_printf ("rgba(%d,%d,%d,%f)",
+ /* drop a for now, since librsvg does not understand rgba() */
+ return g_strdup_printf ("rgb(%d,%d,%d)",
(gint)(color->red * 255),
(gint)(color->green * 255),
- (gint)(color->blue * 255),
- color->alpha);
+ (gint)(color->blue * 255));
}
static GdkPixbuf *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]