Index: gedit/gedit-view.c
===================================================================
RCS file: /cvs/gnome/gedit/gedit/gedit-view.c,v
retrieving revision 1.47
diff -u -p -d -b -r1.47 gedit-view.c
--- gedit/gedit-view.c	3 Jun 2003 12:51:23 -0000	1.47
+++ gedit/gedit-view.c	15 Aug 2003 16:02:32 -0000
@@ -483,18 +483,21 @@ gedit_view_scroll_to_cursor (GeditView *
 }
 
 void 
-gedit_view_set_colors (GeditView* view, gboolean def, GdkColor* backgroud, GdkColor* text,
+gedit_view_set_colors (GeditView* view, gboolean def,
+		       GdkColor* base, GdkColor* text,
 		GdkColor* selection, GdkColor* sel_text)
 {
+	char rc_temp [256];
+
 	gedit_debug (DEBUG_VIEW, "");
 
 	g_return_if_fail (GEDIT_IS_VIEW (view));
 
 	if (!def)
 	{	
-		if (backgroud != NULL)
+		if (base != NULL)
 			gtk_widget_modify_base (GTK_WIDGET (view->priv->text_view), 
-						GTK_STATE_NORMAL, backgroud);
+						GTK_STATE_NORMAL, base);
 
 		if (text != NULL)			
 			gtk_widget_modify_text (GTK_WIDGET (view->priv->text_view), 
@@ -517,12 +520,22 @@ gedit_view_set_colors (GeditView* view, 
 			gtk_widget_modify_text (GTK_WIDGET (view->priv->text_view), 
 						GTK_STATE_ACTIVE, sel_text);		
 		}
+
+		sprintf (rc_temp, cursor_color_rc,
+			 (text->red >> 8), (text->green >> 8), (text->blue >> 8));
+		gtk_rc_parse_string (rc_temp);
 	}
 	else
 	{
 		GtkRcStyle *rc_style;
 
 		rc_style = gtk_widget_get_modifier_style (GTK_WIDGET (view->priv->text_view));
+
+		sprintf (rc_temp, cursor_color_rc,
+			 (rc_style->text [GTK_STATE_NORMAL].red >> 8),
+			 (rc_style->text [GTK_STATE_NORMAL].green >> 8),
+			 (rc_style->text [GTK_STATE_NORMAL].blue >> 8));
+		gtk_rc_parse_string (rc_temp);
 
 		rc_style->color_flags [GTK_STATE_NORMAL] = 0;
 		rc_style->color_flags [GTK_STATE_SELECTED] = 0;
Index: gedit/gedit-view.h
===================================================================
RCS file: /cvs/gnome/gedit/gedit/gedit-view.h,v
retrieving revision 1.11
diff -u -p -d -b -r1.11 gedit-view.h
--- gedit/gedit-view.h	6 May 2003 14:39:03 -0000	1.11
+++ gedit/gedit-view.h	15 Aug 2003 16:02:32 -0000
@@ -1,3 +1,4 @@
+
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
  * gedit-view.h
@@ -41,6 +42,13 @@
 #define GEDIT_IS_VIEW(obj)		(GTK_CHECK_TYPE ((obj), GEDIT_TYPE_VIEW))
 #define GEDIT_IS_VIEW_CLASS(klass)  	(GTK_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_VIEW))
 #define GEDIT_VIEW_GET_CLASS(obj)  	(GTK_CHECK_GET_CLASS ((obj), GEDIT_TYPE_VIEW, GeditViewClass))
+
+static const char cursor_color_rc[] =
+	"style \"svs-cc\""
+	"{"
+		"GtkSourceView::cursor-color=\"#%02x%02x%02x\""
+	"}"
+	"widget \"*\" style : application \"svs-cc\"";
 
 
 typedef struct _GeditView		GeditView;
