[gtksourceview/wip/chergert/gsv-gtk4: 163/259] stylescheme: apply CSS to both "textview" and "textview text"




commit d6f06993ca0b55bd6a033f9c47c147f2c93e1c80
Author: Christian Hergert <chergert redhat com>
Date:   Thu Apr 16 12:25:32 2020 -0700

    stylescheme: apply CSS to both "textview" and "textview text"
    
    Needed to get both the foreground and background working.

 gtksourceview/gtksourcestylescheme.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtksourceview/gtksourcestylescheme.c b/gtksourceview/gtksourcestylescheme.c
index 517b449d..88f54dd5 100644
--- a/gtksourceview/gtksourcestylescheme.c
+++ b/gtksourceview/gtksourcestylescheme.c
@@ -871,6 +871,7 @@ generate_css_style (GtkSourceStyleScheme *scheme)
        final_style = g_string_new ("");
 
        style = gtk_source_style_scheme_get_style (scheme, STYLE_TEXT);
+       append_css_style (final_style, style, "textview");
        append_css_style (final_style, style, "textview text");
 
        style = gtk_source_style_scheme_get_style (scheme, STYLE_SELECTED);


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