From 7d3f4fae4fe4e2fa1ebeefad4f54cd1b44a42408 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 26 May 2015 13:34:59 +0800 Subject: [PATCH] src/Project/Gtk.vala --- src/Project/Gtk.vala | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/Project/Gtk.vala b/src/Project/Gtk.vala index 2edad80b2..bf912a2f8 100644 --- a/src/Project/Gtk.vala +++ b/src/Project/Gtk.vala @@ -151,6 +151,17 @@ namespace Project { } } + /** + * get a list of files for a folder.. + * + * - in the project manager this has to list all possible compilable + * files - eg. exclue XXX.vala.c or XXX.c with the same name as + * a vala file (so to ignore the generated files) + * + * - for the editor navigation - this should exclude all files that + * are vala based on a bjs file.. + * + */ public Gee.ArrayList files(string in_path) @@ -174,7 +185,7 @@ namespace Project { try { var file_enum = dir.enumerate_children( - GLib.FileAttribute.STANDARD_DISPLAY_NAME, + GLib.FileAttribute.STANDARD_DISPLAY_NAME, GLib.FileQueryInfoFlags.NONE, null ); @@ -206,9 +217,7 @@ namespace Project { } - - - + // add the cfiles to ret - if they do not have a vala... for (var i = 0; i < cfiles.size; i ++) { -- 2.39.2