src/Project/Gtk.vala
authorAlan Knowles <alan@roojs.com>
Thu, 28 May 2015 09:02:33 +0000 (17:02 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 28 May 2015 09:02:33 +0000 (17:02 +0800)
src/Project/Gtk.vala

index 6f803c5..471b7c7 100644 (file)
@@ -179,7 +179,7 @@ namespace Project {
                                GLib.debug("SCAN %s - skip - does not exist\n", dirname);
                                return ret;
                        }
-         
+                       var pathprefix = abspath ? dirname : in_path;
           
                        try {
                                var file_enum = dir.enumerate_children(
@@ -202,7 +202,7 @@ namespace Project {
                                                continue;
                                        }
                                        GLib.debug("SCAN ADD %s : %s", fn, next_file.get_content_type());
-                                       ret.add(dirname + "/" + fn);
+                                       ret.add(pathprefix + "/" + fn);
                                         
                                        // any other valid types???