Add tag into log metadata so it's easier to read
authorEnrico Zini <enrico@enricozini.org>
Sun, 28 Mar 2010 00:04:53 +0000 (00:04 +0000)
committerEnrico Zini <enrico@enricozini.org>
Sun, 28 Mar 2010 00:04:53 +0000 (00:04 +0000)
src/log.vala

index 6b9c06978237611e597cd6cb6a29609a209c651a..cd894715d7563c7a15acec4ff01407c1a124f16b 100644 (file)
@@ -180,6 +180,7 @@ public class Log : Object
         outfd.puts("     xsi:schemaLocation=\"http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd\">\n");
         outfd.puts("  <metadata>\n");
         outfd.printf("    <name>%s</name>\n", Markup.escape_text(title));
+        outfd.printf("    <keywords>%s</keywords>\n", Markup.escape_text(tag));
         outfd.puts("  </metadata>\n");
         if (track != null) writeTrack(outfd);
         if (entries != null) writeEntries(outfd);
@@ -290,6 +291,10 @@ class LogParser: Object
                     break;
             }
         }
+        else if (name == "keywords")
+        {
+            result.tag = cur_text;
+        }
         else if (name == "time")
         {
             Time t = Time();