[gnumeric] GnmColor: noone uses the gdk_selected_color field, so kill it.



commit 8c6511c1c244f4859e23bc9ccc24827e0b3d0ea4
Author: Morten Welinder <terra gnome org>
Date:   Tue Sep 1 09:04:33 2009 -0400

    GnmColor: noone uses the gdk_selected_color field, so kill it.

 src/style-color.c |    4 ----
 src/style-color.h |    2 +-
 2 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/style-color.c b/src/style-color.c
index 9181233..5776549 100644
--- a/src/style-color.c
+++ b/src/style-color.c
@@ -52,10 +52,6 @@ style_color_new_uninterned (gushort red, gushort green, gushort blue,
 	red   += (gs_lavender.red   - red)/2;
 	green += (gs_lavender.green - green)/2;
 	blue  += (gs_lavender.blue  - blue)/2;
-	sc->gdk_selected_color.red = red;
-	sc->gdk_selected_color.green = green;
-	sc->gdk_selected_color.blue = blue;
-	sc->gdk_selected_color.pixel = gs_white.pixel;
 
 	sc->ref_count = 1;
 
diff --git a/src/style-color.h b/src/style-color.h
index fc13dd9..9b04e25 100644
--- a/src/style-color.h
+++ b/src/style-color.h
@@ -13,7 +13,7 @@ G_BEGIN_DECLS
 GType gnm_style_color_get_type (void);
 
 struct _GnmColor {
-	GdkColor gdk_color, gdk_selected_color;
+	GdkColor gdk_color;
 	GOColor	 go_color;
 	char     *name;
 	int      ref_count;



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