[gtksourceview] Style scheme: apply gutter style only to style class



commit 47a6647ffe3b338b1642860e0523b02b9ead73a5
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Nov 26 11:38:23 2015 +0100

    Style scheme: apply gutter style only to style class
    
    When drawing the gutter, the CSS node is not known. We manually apply
    the style class ("left", for example).
    
    There was a bug with the background color in the gutter for the current
    line, when the style scheme doesn't define a current-line-number style.
    In that case, instead of having the line-numbers background, it had the
    same background as the main text area.

 gtksourceview/gtksourcestylescheme.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtksourceview/gtksourcestylescheme.c b/gtksourceview/gtksourcestylescheme.c
index 99db2b7..61c4bc2 100644
--- a/gtksourceview/gtksourcestylescheme.c
+++ b/gtksourceview/gtksourcestylescheme.c
@@ -913,10 +913,10 @@ generate_css_style (GtkSourceStyleScheme *scheme)
        style = gtk_source_style_scheme_get_style (scheme, STYLE_LINE_NUMBERS);
        if (style != NULL)
        {
-               append_css_style (final_style, style, "border.top");
-               append_css_style (final_style, style, "border.right");
-               append_css_style (final_style, style, "border.bottom");
-               append_css_style (final_style, style, "border.left");
+               append_css_style (final_style, style, ".top");
+               append_css_style (final_style, style, ".right");
+               append_css_style (final_style, style, ".bottom");
+               append_css_style (final_style, style, ".left");
 
                /* For the corners if the top or bottom gutter is also
                 * displayed.


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