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



commit d61a19b8c6ac42dec210d3a386f49710e6cd7c83
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]