[gtksourceview/wip/chergert/gsv-gtk4: 169/259] stylescheme: include comment about scheme for CSS




commit 30977fb92226b2df94c3471ded76717dc467a786
Author: Christian Hergert <chergert redhat com>
Date:   Fri Apr 17 14:05:31 2020 -0700

    stylescheme: include comment about scheme for CSS
    
    This can be helpful when debugging to dump the CSS information.

 gtksourceview/gtksourcestylescheme.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/gtksourceview/gtksourcestylescheme.c b/gtksourceview/gtksourcestylescheme.c
index e7e3024d..0df40736 100644
--- a/gtksourceview/gtksourcestylescheme.c
+++ b/gtksourceview/gtksourcestylescheme.c
@@ -870,6 +870,10 @@ generate_css_style (GtkSourceStyleScheme *scheme)
 
        final_style = g_string_new ("");
 
+       g_string_append_printf (final_style,
+                               "/* %s */\n",
+                               gtk_source_style_scheme_get_id (scheme));
+
        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");


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