[gnumeric] GnmColor: cleanup.



commit 97d18d2974b44f29cfa6a08a3fb00d5ee02f0ba6
Author: Morten Welinder <terra gnome org>
Date:   Tue Sep 1 13:39:17 2009 -0400

    GnmColor: cleanup.

 ChangeLog         |    4 ++++
 src/style-color.c |    8 +-------
 2 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 6478463..092f420 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-09-01  Morten Welinder  <terra gnome org>
+
+	* src/style-color.c (style_color_new_uninterned): Cleanup.
+
 2009-09-01  Andreas J. Guelzow <aguelzow pyrshep ca>
 
 	* src/mstyle.c (gnm_style_new_default): use style_color_auto_back
diff --git a/src/style-color.c b/src/style-color.c
index 7a658af..a33b6f1 100644
--- a/src/style-color.c
+++ b/src/style-color.c
@@ -44,14 +44,8 @@ style_color_new_uninterned (gushort red, gushort green, gushort blue,
 	sc->gdk_color.green = green;
 	sc->gdk_color.blue = blue;
 	sc->gdk_color.pixel = gs_white.pixel;
-	sc->go_color = GO_RGBA_TO_UINT (red>>8,green>>8,blue>>8,0xff);
+	sc->go_color = GO_RGBA_TO_UINT (red >> 8, green >> 8, blue >> 8, 0xff);
 	sc->is_auto = is_auto;
-
-	/* Make a contrasting selection color with an alpha of .5 */
-	red   += (gs_lavender.red   - red)/2;
-	green += (gs_lavender.green - green)/2;
-	blue  += (gs_lavender.blue  - blue)/2;
-
 	sc->ref_count = 1;
 
 	return sc;



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