[evolution-patches] fix for bug #42345



http://bugzilla.ximian.com/show_bug.cgi?id=42345

it seems that gdk_color_parse() no longer recognises the form:

rgb:r/g/b

I've changed it to use:

#rgb

(where r, g, and b are hex vals)

Jeff

-- 
Jeffrey Stedfast
Evolution Hacker - Ximian, Inc.
fejj ximian com  - www.ximian.com
? 42345.patch
? filters.dtd
? pipe-filter-action.patch
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/filter/ChangeLog,v
retrieving revision 1.366
diff -u -r1.366 ChangeLog
--- ChangeLog	29 Apr 2003 17:08:40 -0000	1.366
+++ ChangeLog	5 May 2003 20:53:33 -0000
@@ -1,3 +1,9 @@
+2003-05-05  Jeffrey Stedfast  <fejj ximian com>
+
+	* filter-colour.c (format_sexp): Format the colour string in a way
+	that gdk_color_parse() will handle. Apparently it no longer
+	handles rgb:<red>/<green>/<blue>? Fixes bug #42345.
+
 2003-04-24  Jeffrey Stedfast  <fejj ximian com>
 
 	Fix for bug #41578.
Index: filter-colour.c
===================================================================
RCS file: /cvs/gnome/evolution/filter/filter-colour.c,v
retrieving revision 1.10
diff -u -r1.10 filter-colour.c
--- filter-colour.c	26 Nov 2002 11:25:51 -0000	1.10
+++ filter-colour.c	5 May 2003 20:53:33 -0000
@@ -223,7 +223,8 @@
 	FilterColour *fc = (FilterColour *)fe;
 	char *str;
 	
-	str = g_strdup_printf ("rgb:%04x/%04x/%04x", fc->r, fc->g, fc->b);
+	/*str = g_strdup_printf ("rgb:%04x/%04x/%04x", fc->r, fc->g, fc->b);*/
+	str = g_strdup_printf ("#%02x%02x%02x", (fc->r >> 8) & 0xff, (fc->g >> 8) & 0xff, (fc->b >> 8) & 0xff);
 	e_sexp_encode_string (out, str);
 	g_free (str);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]