[gtksourceview] Use the right state for the selection.



commit 502a30448b5550e70902dfce6f69eec3cb596781
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon Jan 10 23:17:58 2011 +0100

    Use the right state for the selection.

 gtksourceview/gtksourcestylescheme.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtksourceview/gtksourcestylescheme.c b/gtksourceview/gtksourcestylescheme.c
index c81bffc..e65090f 100644
--- a/gtksourceview/gtksourcestylescheme.c
+++ b/gtksourceview/gtksourcestylescheme.c
@@ -715,12 +715,12 @@ generate_css_style (GtkSourceStyleScheme *scheme,
 	append_css_style (final_style, style, "");
 
 	style = gtk_source_style_scheme_get_style (scheme, STYLE_SELECTED);
-	append_css_style (final_style, style, ":selected");
+	append_css_style (final_style, style, ":selected:focused");
 
 	style2 = gtk_source_style_scheme_get_style (scheme, STYLE_SELECTED_UNFOCUSED);
 	if (style2 == NULL)
 		style2 = style;
-	append_css_style (final_style, style2, ":active");
+	append_css_style (final_style, style2, ":selected");
 
 	/* if there is a previously applied css remove it first */
 	remove_generated_css (scheme, widget);



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