Project/Project.vala
authorAlan Knowles <alan@roojs.com>
Tue, 10 Jun 2014 11:06:02 +0000 (19:06 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 10 Jun 2014 11:06:02 +0000 (19:06 +0800)
Project/Project.vala

index 0cd0c6a..3e1f758 100644 (file)
@@ -120,6 +120,16 @@ public class Project.Project : Object {
              
           
     }
+    public string firstPath()
+    {
+        var iter = this.paths.map_iterator();
+        while (iter.next()) {
+            return iter.get_key();
+        }
+      
+        return "";
+    }
+    
     // returns the first path
     public string getName()
     {