[gtk+] StyleContext: Add CSS snippet language comments



commit 3354ad080bcc65b7ecb1c6c886c5e338bced8611
Author: Daniel Boles <dboles src gmail com>
Date:   Thu Oct 12 19:40:45 2017 +0100

    StyleContext: Add CSS snippet language comments
    
    The language is useful for parsing tools, such as that of gtkmm, which
    otherwise assumes these are C snippets and elides them from its
    generated documentation.

 gtk/gtkstylecontext.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index 12148cf..5f5637d 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -1202,13 +1202,13 @@ gtk_style_context_restore (GtkStyleContext *context)
  * In the CSS file format, a #GtkEntry defining a “search”
  * class, would be matched by:
  *
- * |[
+ * |[ <!-- language="CSS" -->
  * entry.search { ... }
  * ]|
  *
  * While any widget defining a “search” class would be
  * matched by:
- * |[
+ * |[ <!-- language="CSS" -->
  * .search { ... }
  * ]|
  *


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