summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-09-13 10:45:03 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-09-13 14:42:03 -0400
commitfe6f70efe1e5681bdcfc63628b44a5c8a2bd1e78 (patch)
tree421259477889514493e48ba8d28f773b8cb977d3
parentcddbc8f1cc1c7a5381469857bd9021047f57b747 (diff)
downloadgtk+-fe6f70efe1e5681bdcfc63628b44a5c8a2bd1e78.tar.gz
gtk-demo: Ignore some lines in info
Ignore lines starting with # in the info comment at the top of source files. This will be used to add keywords for search in following commits.
-rw-r--r--demos/gtk-demo/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/demos/gtk-demo/main.c b/demos/gtk-demo/main.c
index 9abbd0f943..3011c3e890 100644
--- a/demos/gtk-demo/main.c
+++ b/demos/gtk-demo/main.c
@@ -581,6 +581,9 @@ load_file (const char *demoname,
while (g_ascii_isspace (*(p + len - 1)))
len--;
+ if (*p == '#')
+ break;
+
if (len > 0)
{
if (in_para)