this.xtype = "Gtk";
var gid = "project-gtk-%d".printf(gtk_id++);
this.id = gid;
- this.loadConfig();
+ try {
+ this.loadConfig();
+ } catch (GLib.Error e ) {
+ // is tihs ok?
+ }
}
public Gee.HashMap<string,GtkValaSettings> compilegroups;
*
*/
- public Gee.ArrayList<string> filesAll(string in_path)
+ public Gee.ArrayList<string> filesAll(string in_path,bool abspath = true)
{
var ret = new Gee.ArrayList<string>();
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(
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???
return ret;
}
- public Gee.ArrayList<string> filesForCompile(string in_path)
+ public Gee.ArrayList<string> filesForCompile(string in_path, bool abspath = true)
{
- var allfiles = this.filesAll(in_path);
+ var allfiles = this.filesAll(in_path,abspath);
var ret = new Gee.ArrayList<string>();